Skip to content

Commit

Permalink
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions core/proc.rb
Original file line number Diff line number Diff line change
@@ -250,10 +250,9 @@ def for_define_method(name, klass)
else
be = @block.dup
be.change_name name
code = Rubinius::BlockEnvironment::AsMethod.new(be)
meth = self.dup
meth.lambda_style!
scope = meth.block.scope

code = Rubinius::BlockEnvironment::AsMethod.new(be)
scope = code.block_env.scope
end

[code, scope]

0 comments on commit 21bede5

Please sign in to comment.