Guest User

Untitled

a guest
Apr 23rd, 2018
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.23 KB | None | 0 0
  1.  
  2.  
  3. class Bar
  4. def some_method_here
  5. end
  6. def run(arg)
  7. end
  8. end
  9.  
  10. def foo(arg, arg2, &block)
  11. my_block = block
  12. end
  13.  
  14.  
  15. def invoke(args)
  16. my_block.call(args)
  17. end
  18.  
  19. foo(1,2) do
  20. some_method_here
  21. run("git")
  22. end
Add Comment
Please, Sign In to add comment