Advertisement
Guest User

Untitled

a guest
Aug 26th, 2016
55
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.25 KB | None | 0 0
  1. module A
  2. def test
  3. puts "module A"
  4. end
  5. end
  6.  
  7. module B
  8. def test
  9. puts "module B"
  10. end
  11. end
  12.  
  13. class FirstClass
  14. def test
  15. puts "class FirstClass"
  16. end
  17. end
  18.  
  19. class SecondClass < FirstClass
  20. include A
  21. include B
  22. end
  23.  
  24. a = SecondClass.new
  25.  
  26. puts a.test
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement