Guest User

Untitled

a guest
Apr 24th, 2018
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.26 KB | None | 0 0
  1. require 'virtual'
  2.  
  3. class Toto < VirtualBase
  4. def initialize
  5. super
  6. puts "init"
  7. end
  8.  
  9. def process_worker
  10. puts "worker processing"
  11. end
  12.  
  13. end
  14.  
  15.  
  16. b = Toto.new
  17. b.do_work
  18. b.process_worker
  19.  
  20. puts "=========="
  21.  
  22. v = VirtualBase.new
  23. v.do_work
  24. v.process_worker
Add Comment
Please, Sign In to add comment