From: Robert Klemme Date: 2007-10-23T18:29:28+09:00 Subject: Re: "with" statement 2007/10/22, Giles Bowkett : > > module Kernel > > def with(object,&block) > > object.instance_eval &block > > end > > end > > > > with([1,2,3]) { length } # => 3 > > This is really neat and compact. How is this more compact than [1,2,3].length ? Cheers robert