Skip to content

Commit

Permalink
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions core/proc.rb
Original file line number Diff line number Diff line change
@@ -251,10 +251,11 @@ def for_define_method(name, klass)
be = @block.dup
be.change_name name

executable = Rubinius::BlockEnvironment::AsMethod.new(be)
duped_proc = self.dup
duped_proc.lambda_style!

code = executable
scope = executable.scope
code = Rubinius::BlockEnvironment::AsMethod.new(be)
scope = duped_proc.block.scope
end

[code, scope]

0 comments on commit eb465ca

Please sign in to comment.