Gokhan Ersumer wrote:

> I'm experimenting with Ruby by writing some kind of DSL.
> I wonder if It is possible calling given block to a proc with different 
> binding

I think you are looking for Object#instance_eval.

Note that in 1.8 there is no way to build-in way to execute a block in a 
different context and at the same time providing it with arguments.

In 1.9 it will be possible to do that with Object#instance_exec.

-- 
http://flgr.0x42.net/