Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

JRuby 9000: const_defined? does not support nested constants #2319

Closed
rkh opened this issue Dec 15, 2014 · 1 comment
Closed

JRuby 9000: const_defined? does not support nested constants #2319

rkh opened this issue Dec 15, 2014 · 1 comment

Comments

@rkh
Copy link
Contributor

@rkh rkh commented Dec 15, 2014

$ ruby -v
jruby 9.0.0.0-SNAPSHOT (2.2.0p0) 2014-12-14 31f21b9 Java HotSpot(TM) 64-Bit Server VM 25.20-b23 on 1.8.0_20-b26 +jit [darwin-x86_64]
module Foo
  Bar = 42
end

# should return true but raises exception
Object.const_defined?("Foo::Bar")
@rkh
Copy link
Contributor Author

@rkh rkh commented Jan 14, 2015

\o/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants