Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- require 'virtual'
- class Toto < VirtualBase
- def initialize
- super
- puts "init"
- end
- def process_worker
- puts "worker processing"
- end
- end
- b = Toto.new
- b.do_work
- b.process_worker
- puts "=========="
- v = VirtualBase.new
- v.do_work
- v.process_worker
Add Comment
Please, Sign In to add comment