サクサク読めて、アプリ限定の機能も多数!
block_given?よりもdefined?(yield)のほうがメソッド呼び出しがないぶん速いとのこと
a2ikm のブックマーク 2015/08/28 14:39
Block_given? vs defined? yield[ruby]block_given?よりもdefined?(yield)のほうがメソッド呼び出しがないぶん速いとのこと2015/08/28 14:39
このブックマークにはスターがありません。 最初のスターをつけてみよう!
www.ruby-forum.com2012/05/21
Hi all, Is there any difference between “block_given?” vs “defined? yield” ? I dug through the source a bit, but I had trouble finding the definition. Is the former just a wrapper for the latter? T...
3 人がブックマーク・1 件のコメント
\ コメントが サクサク読める アプリです /
block_given?よりもdefined?(yield)のほうがメソッド呼び出しがないぶん速いとのこと
このブックマークにはスターがありません。
最初のスターをつけてみよう!
Block_given? vs defined? yield
Hi all, Is there any difference between “block_given?” vs “defined? yield” ? I dug through the source a bit, but I had trouble finding the definition. Is the former just a wrapper for the latter? T...
3 人がブックマーク・1 件のコメント
\ コメントが サクサク読める アプリです /