This is an issue only if foo is a method that does a complex calculation. - Hide quoted text ->> class NilClass >> def each; self; end >> include Enumerable >> end >> foo.each {|value| ... } > This shortens the usage code, but I do not like playing with > the definition of NilClass.