LAMBEAU Bernard wrote: > obj.instance_eval {| | block } => obj > > I don't interpret it that way: it only states that self is obj inside > the block. The documentation says nothing about block arguments. > > I would like something like this: > > obj.instance_eval {| who| block } => obj > where who ==self == obj. You can build that yourself. class Object def my_instance_eval(&blk) instance_eval { blk[self] } end end obj = "" obj.my_instance_eval { |who| p who } -- Posted via http://www.ruby-forum.com/.