What is the meaning of “do | |” in Ruby?

It’s a way of defining arguments for a block, in a similar way to def methodname(arg1, arg2)

A nice explanation of blocks is available from Robert Sosinski

Leave a Comment