Advertisement
Guest User

Untitled

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