Skip to content

Instantly share code, notes, and snippets.

@yswallow
Created June 2, 2015 10:21
Show Gist options
  • Select an option

  • Save yswallow/db3a91388146befd773f to your computer and use it in GitHub Desktop.

Select an option

Save yswallow/db3a91388146befd773f to your computer and use it in GitHub Desktop.
Rubyの謎
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