Skip to content

Commit

Permalink
hand on block with soft aliases
Browse files Browse the repository at this point in the history
  • Loading branch information
rkh committed Sep 7, 2011
1 parent ba6ed5d commit a2de65d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/reak/bootstrap/tools.rb
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,8 @@ def soft_alias(from, to, args, location, obj)
cm = obj.dynamic_method from.to_sym, file, line do |g|
g.push_self
0.upto(args - 1) { |i| g.push_local i }
g.send to.to_sym, args, true
g.push_proc
g.send_with_block to.to_sym, args, true
g.ret
end

Expand Down

0 comments on commit a2de65d

Please sign in to comment.