Created
June 2, 2015 10:21
-
-
Save yswallow/db3a91388146befd773f to your computer and use it in GitHub Desktop.
Rubyの謎
This file contains hidden or 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 | |
| def self.hoge | |
| fuga | |
| end | |
| def fuga | |
| 'bar' | |
| end | |
| end | |
| Foo.hoge | |
| #expect => 'bar' | |
| #actual => NoMethodError: undefined method `fuga' for Foo:Module |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment