2008-09-30から1日間の記事一覧
好評につき第2弾.以下のコードはそれぞれどのような挙動をするか? def foo yield end p method(:foo).call { 3 } def foo yield end p method(:foo).to_proc.call { 3 }
好評につき第2弾.以下のコードはそれぞれどのような挙動をするか? def foo yield end p method(:foo).call { 3 } def foo yield end p method(:foo).to_proc.call { 3 }