Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class A; end
- A.send(:define_method, :foo) do
- |a,b,c|
- yield(a,b,c)
- end
- puts A.new.foo(1,2,3) do |a,b,c|
- a + b + c
- end # still doesn't seem to work
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement