small medium large xlarge

05 Jul 2009, 15:13
Robert Pankowecki (1 post)

Probably it was not true when the episode was created but now you can do the same thing in Ruby 1.8.7 as in Ruby 1.9:

method() do |something, &proc|

Blocks can take another blocks as arguments. However, it cannot be done with Ruby 1.8.6

You must be logged in to comment