That's a good idea, but I don't think that actually does the same thing - it'll just return an Enumerator.  #each still needs to be explicitly called.

The example here checks whether a block was given http://ruby-doc.org/core-2.0/Object.html#method-i-to_enum