Dan Yoder wrote:
> Robert and David are right - you can use instance_eval. If you really
> want with, it is very easy to add:
> 
> module Kernel
>   def with(object,&block)
>     object.instance_eval &block
>   end
> end
> 
> with([1,2,3]) { length } # => 3
> 
> 
> ---
> Dan Yoder
> http://dev.zeraweb.com/
> Ruby And JavaScript Consulting

Why not just alias instance_eval? Would achieve the same and is less 
overhead.

Regards
Stefan
-- 
Posted via http://www.ruby-forum.com/.