Issue #5007 has been reported by Magnus Holm. ---------------------------------------- Feature #5007: Proc#call_under: Unifying instance_eval and instance_exec http://redmine.ruby-lang.org/issues/5007 Author: Magnus Holm Status: Open Priority: Normal Assignee: Category: Target version: I'm proposing a method called Proc#call_under (the name could be discussed) which both unifies instance_eval and instance_exec, and makes it possible to call a Proc with a block and a scope: Proc#call_under(self, *args, &blk): proc { self }.call_under(1) # => 1 proc { |a| self + a }.call_under(1, 2) # => 3 proc { |&b| self + b.call }.call_under(2) { 2 } # => 4 -- http://redmine.ruby-lang.org