Created
October 26, 2011 01:46
-
-
Save cgriego/1315166 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module Bar | |
def initialize(*args) | |
puts "bar" | |
super | |
end | |
end | |
class Foo | |
include Bar | |
def initialize(name) | |
puts "foo" | |
super | |
end | |
end | |
Foo.new "boom" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment