public IRubyObject const_get_1_9(ThreadContext context, IRubyObject[] args) {
IRubyObject symbol = args[0];
boolean inherit = args.length == 1 || (!args[1].isNil() && args[1].isTrue());
// 1.9 only includes Object when inherit = true or unspecified (JRUBY-6224)
return getConstant(validateConstant(symbol.asJavaString()), inherit, inherit);
}
@JRubyMethod(name = "const_get", required = 1, optional = 1, compat = CompatVersion.RUBY2_0)
public IRubyObject const_get_2_0(ThreadContext context, IRubyObject[] args) {
String symbol = args[0].asJavaString();