{"url":"https://mametter.hatenablog.com/entry/20120527/p1","categories":["Ruby"],"author_name":"ku-ma-me","published":"2012-05-27 00:00:00","provider_url":"https://hatena.blog","width":"100%","description":"\u4eca\u9031\u3082\u3001\u4eca\u9031\u5165\u3063\u305f\u3070\u304b\u308a\u306e\u65b0\u6a5f\u80fd\u3092\u7d39\u4ecb\u3057\u307e\u3059\u3002\u3061\u3087\u3063\u3068\u5730\u5473\u3068\u3044\u3046\u304b\u3001\u7d30\u304b\u3044\u8a71\u3067\u3059\u304c\u3002 \u4eca\u9031\u306e\u30cb\u30e5\u30fc\u30b9: caller \u306e\u6539\u5584\u3067\u6587\u5b57\u5217\u306e\u30d1\u30fc\u30b9\u304c\u4e0d\u8981\u306b \u80cc\u666f \u304b\u3064\u3066\u3088\u308a\u3001\u30b3\u30fc\u30eb\u30b9\u30bf\u30c3\u30af\u3092\u914d\u5217\u3068\u3057\u3066\u53d6\u308a\u51fa\u3059\u6a5f\u80fd Kernel#caller \u304c\u3042\u308a\u307e\u3059\u3002 def foo caller(0).each {|x| p x } end def bar foo end def baz bar end baz $ ./ruby test.rb \"test.rb:2:in `foo'\" \"test.rb:6:in `bar'\" \"test.rb:10:in `baz'\" \"test.rb:13:in `<mai\u2026","author_url":"https://blog.hatena.ne.jp/ku-ma-me/","version":"1.0","blog_title":"\u307e\u3081\u3081\u3082","type":"rich","title":" Ruby 2.0 \u30ea\u30ea\u30fc\u30b9\u9031\u8a18 (2012/05/21 - 27)","image_url":null,"height":"190","provider_name":"Hatena Blog","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fmametter.hatenablog.com%2Fentry%2F20120527%2Fp1\" title=\" Ruby 2.0 \u30ea\u30ea\u30fc\u30b9\u9031\u8a18 (2012/05/21 - 27) - \u307e\u3081\u3081\u3082\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","blog_url":"https://mametter.hatenablog.com/"}