05 Jul 2009, 15:13
Robert_pankowecki192x192_pragsmall

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

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

  You must be logged in to comment