Wed Oct 19
#
Using the result of a block to set a default method parameter
def speak(message = yield) message end speak 'Hello' # => 'Hello' speak { 'Howdy' } # => 'Howdy' speak 'Hello' if false # => syntax error speak { 'Howdy' if false } # => nil
#
#rails-core
15:15 < pragdave> pwd
15:15 < pragdave> oops
15:16 < htonl> ~/porn
15:16 < xal> you mean ~/.porn
15:18 < bitsweat> you mean ~/.python