Tbpgr Blog

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

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

Ruby | Proc | []

概要 Proc#self[*arg] -> () Proc#call(*arg) -> () Proc#self === *arg -> () Proc#yield(*arg) -> () 詳細 手続きオブジェクトを実行してその結果を返却。 「 === 」 は case 文での利用のため。 サンプルコード require 'tbpgr_utils' pr = Proc.new { |m…