Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save schnittchen/4946111 to your computer and use it in GitHub Desktop.
Save schnittchen/4946111 to your computer and use it in GitHub Desktop.
# in m/m_q.rb
module M
module MQ
end
end
# in m/m2.rb
module M
module M2
def self.foo
MQ # good
end
class << self
def bar
MQ # NameError Exception: uninitialized constant MQ
end
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment