# Evaluate the block with the given arguments within the context of # this object, so self is set to the method receiver. # # From Mauricio's http://eigenclass.org/hiki/bounded+space+instance_exec puts 'here' begin old_critical, Thread = Thread, true n = 0 n += 1 while (method_name = "__instance_exec") InstanceExecMethods {(method_name, &block) } ensure Thread = old_critical end begin (method_name, *args) ensure InstanceExecMethods {(method_name) } rescue nil end end |

