2007/10/22, Giles Bowkett <gilesb / gmail.com>:
> > 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