Advertisement
Guest User

Untitled

a guest
Jan 23rd, 2018
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Ruby 0.25 KB | None | 0 0
  1. module A
  2.  
  3.    def a1
  4.    end
  5.  
  6.    def a2
  7.    end
  8.  
  9. end
  10.  
  11. module B
  12.  
  13.    def b1
  14.    end
  15.  
  16.    def b2
  17.    end
  18.  
  19. end
  20.  
  21. class Sample
  22.  
  23. include A
  24. include B
  25.  
  26.    def s1
  27.    end
  28.  
  29. end
  30.  
  31. samp = Sample.new
  32. samp.a1
  33. samp.a2
  34. samp.b1
  35. samp.b2
  36. samp.s1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement