Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class Bar
- def some_method_here
- end
- def run(arg)
- end
- end
- def foo(arg, arg2, &block)
- my_block = block
- end
- def invoke(args)
- my_block.call(args)
- end
- foo(1,2) do
- some_method_here
- run("git")
- end
Add Comment
Please, Sign In to add comment