Flowdock

Notes posted by iiska

RSS feed
August 5, 2010
0 thanks

Block_given?

Kernel#block_given? can be used to check if yield would be able to call a block.

August 3, 2010
1 thank

Inverse function

String#underscore is inverse for the camelize.

“active_record”.camelize.underscore # => “active_record”