Created
December 18, 2012 00:58
-
-
Save scottjg/4323979 to your computer and use it in GitHub Desktop.
broken module class mix-in
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
#!/usr/bin/env ruby | |
module My | |
module Foo | |
class Bar | |
def hello | |
puts "hello" | |
end | |
end | |
end | |
end | |
module Foo | |
include My::Foo | |
class Bar | |
def bye | |
puts "bye" | |
end | |
end | |
end | |
f = Foo::Bar.new | |
f.hello |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment