block_given?よりもdefined?(yield)のほうがメソッド呼び出しがないぶん速いとのこと

a2ikma2ikm のブックマーク 2015/08/28 14:39

その他

このブックマークにはスターがありません。
最初のスターをつけてみよう!

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...

    \ コメントが サクサク読める アプリです /

    • App Storeからダウンロード
    • Google Playで手に入れよう