On Feb 18, 2010, at 11:57 , Glenn Ritz wrote: > Hi, >=20 > I would like to add self to an Enumerable object in Ruby 1.9, like in > this (admittedly) contrived example: >=20 > %w(cat dog mouse).each.with_self { |e, s| puts "self: #{s.inspect}, e: = #{e}" } IDGI. What's the point? %w(cat dog mouse).each { |e| s =3D self; puts "self: #{s.inspect}, e: = #{e}" } or better: %w(cat dog mouse).each { |e| puts "self: #{self.inspect}, e: #{e}" }