{"html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fsecret-garden.hatenablog.com%2Fentry%2F2016%2F02%2F20%2F222316\" title=\"Ruby \u3067\u30e1\u30bf\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u7684\u306b\u30d5\u30a3\u30dc\u30ca\u30c3\u30c1\u6570\u5217\u3092\u6c42\u3081\u308b - Secret Garden(Instrumental)\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","author_name":"osyo-manga","url":"https://secret-garden.hatenablog.com/entry/2016/02/20/222316","type":"rich","blog_url":"https://secret-garden.hatenablog.com/","image_url":null,"categories":["Ruby"],"version":"1.0","description":"Ruby \u3067\u30d5\u30a3\u30dc\u30ca\u30c3\u30c1\u6570\u5217\u3092\u6c42\u3081\u308b\u30e1\u30bf\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u3092\u66f8\u3044\u3066\u307f\u305f\u3002 class Fib def call n __send__ \"_#{n}\" end def method_missing name, *args n = name[/_(\\d+)/, 1].to_i if n > 1 n = call(n - 2) + call(n - 1) end define_singleton_method(name) { n } && n end end fib = Fib.new 1.upto(55) do |n| print \"#{fib.call n} \" end # => 1 1 2 3 5\u2026","height":"190","provider_url":"https://hatena.blog","provider_name":"Hatena Blog","published":"2016-02-20 22:23:16","width":"100%","blog_title":"Secret Garden(Instrumental)","author_url":"https://blog.hatena.ne.jp/osyo-manga/","title":"Ruby \u3067\u30e1\u30bf\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u7684\u306b\u30d5\u30a3\u30dc\u30ca\u30c3\u30c1\u6570\u5217\u3092\u6c42\u3081\u308b"}