From: Trans Date: 2005-03-22T13:39:50+09:00 Subject: Re: Ruby Facets 0.6.2 Florian Gross wrote: > Perhaps it would also be a nice idea to add Enumerable#count, > Kernel#with and Object.new with a template block? > > Samples: > > [1, 2, 3].count { |item| item > 1 } # => 2 > with("foo") { reverse } # "oof" > > obj = Object.new("foo") { def reverse() "bar" end } > obj # => "foo" > obj.reverse # => "bar" Thanks for the suggestions. I'll have a look and give them a try in the next release. T.