Guest User

Untitled

a guest
Apr 20th, 2018
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.36 KB | None | 0 0
  1. class Attendee
  2. def listen
  3. puts "think: interesting stuff ..."
  4. end
  5. end
  6.  
  7. module Tweets
  8. def listen
  9. super
  10. puts "tweet: great conference! :D"
  11. end
  12. end
  13.  
  14. module Applause
  15. def listen
  16. super
  17. puts "applause!"
  18. end
  19. end
  20.  
  21. attendee = Attendee.new
  22.  
  23. class Attendee
  24. include Tweets
  25. include Applause
  26. end
  27.  
  28. attendee.listen
  29.  
  30. # think: interesting stuff ...
Add Comment
Please, Sign In to add comment