Tbpgr Blog

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

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

Ruby | Proc | new

概要 Proc.new -> Proc Proc.new { ... } -> Proc 詳細 ブロックをコンテキストとともにオブジェクト化して返却。 ブロックを指定しない場合は、このメソッドを呼び出したメソッドが ブロックを伴う場合に、Procを生成。 サンプルコード require 'tbpgr_util…