{"url":"https://tbpgr.hatenablog.com/entry/20141029/1414589790","author_url":"https://blog.hatena.ne.jp/tbpg/","author_name":"tbpg","width":"100%","provider_name":"Hatena Blog","image_url":null,"published":"2014-10-29 22:36:30","title":"Ruby | Proc | lambda?","categories":["Ruby"],"height":"190","version":"1.0","blog_title":"Tbpgr Blog","blog_url":"https://tbpgr.hatenablog.com/","description":"\u6982\u8981 Proc#lambda? -> bool \u8a73\u7d30 \u624b\u7d9a\u304d\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306e\u5f15\u6570\u306e\u53d6\u6271\u304c\u53b3\u5bc6\u3067\u3042\u308b\u306a\u3089\u3070 true \u3092\u8fd4\u5374\u3002 \u30b5\u30f3\u30d7\u30eb\u30b3\u30fc\u30c9 require 'tbpgr_utils' def hoge(&b) b.lambda? end def hige;;end bulk_puts_eval binding, <<-EOS lambda {}.lambda? Proc.new {}.lambda? proc {}.lambda? hoge {} method(:hige).to_proc.lambda? EOS __END__ \u4e0b\u8a18\u306fTbpgrUtils gem\u306e\u6a5f\u80fd bulk_puts_e\u2026","provider_url":"https://hatena.blog","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Ftbpgr.hatenablog.com%2Fentry%2F20141029%2F1414589790\" title=\"Ruby | Proc | lambda? - Tbpgr Blog\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","type":"rich"}