Tbpgr Blog

Employee Experience Engineer tbpgr(てぃーびー) のブログ

2014-10-29から1日間の記事一覧

Ruby | Proc | lambda?

概要 Proc#lambda? -> bool 詳細 手続きオブジェクトの引数の取扱が厳密であるならば true を返却。 サンプルコード require 'tbpgr_utils' def hoge(&b) b.lambda? end def hige;;end bulk_puts_eval binding, <<-EOS lambda {}.lambda? Proc.new {}.lambda…