Advertisement
Guest User

Untitled

a guest
Jul 4th, 2012
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Ruby 0.33 KB | None | 0 0
  1. module Foo
  2.     def initialize(options)
  3.         super(options)
  4.         puts 'foo'
  5.     end
  6. end
  7.  
  8. module Moep
  9.     def initialize(options)
  10.         super(options)
  11.         puts 'moep'
  12.     end
  13. end
  14.  
  15.  
  16. class Bar
  17.     include Foo
  18.     include Moep
  19.  
  20.     def initialize(options)
  21.         super(options)
  22.         puts 'bar'
  23.     end
  24. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement