Skip to content

Instantly share code, notes, and snippets.

@oren
Created January 31, 2011 22:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save oren/804923 to your computer and use it in GitHub Desktop.
Save oren/804923 to your computer and use it in GitHub Desktop.
module M
CONTENT = foo
def foo
'hello'
end
end
puts M::CONTENT
ruby-test.rb:2: undefined local variable or method `foo' for M:Module (NameError)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment