Last active
December 20, 2015 09:59
-
-
Save TvL2386/6112531 to your computer and use it in GitHub Desktop.
In rails 3.2 development, running Foo::Bar.say_hi in the console gives:
NoMethodError: undefined method `say_hi' for Foo::Bar:Module
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 Foo | |
module Bar | |
def self.say_hi | |
puts "hi" | |
end | |
end | |
end |
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 Foo | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment