/** * Used by the evaluator and the compiler to look up a constant by name */ @Deprecated public IRubyObject getConstant(String internedName) { return getCurrentStaticScope().getConstant(internedName); }
/** * Used by the evaluator and the compiler to look up a constant by name */ @Deprecated public IRubyObject getConstant(String internedName) { return getCurrentStaticScope().getConstant(internedName); }
/** Get parent module/class that this module represents */ @Override public RubyModule getEnclosingModule(Ruby runtime, ThreadContext context, IRubyObject self, Block aBlock) { if (leftNode != null && leftNode instanceof NilNode) { throw context.runtime.newTypeError("no outer class/module"); } return Helpers.prepareClassNamespace(context, context.getCurrentStaticScope(), leftNode.interpret(runtime, context, self, aBlock)); } }
public IRubyObject call(ThreadContext context, IRubyObject caller, IRubyObject self, IRubyObject[] args, Block block) { RubyClass selfType = getClass(self); DynamicMethod method = selfType.searchWithRefinements(methodName, context.getCurrentStaticScope()); if (methodMissing(method, caller)) { return callMethodMissing(context, self, selfType, method, args, block); } return method.call(context, self, selfType, methodName, args, block); }
public IRubyObject call(ThreadContext context, IRubyObject caller, IRubyObject self, Block block) { RubyClass selfType = getClass(self); DynamicMethod method = selfType.searchWithRefinements(methodName, context.getCurrentStaticScope()); if (methodMissing(method, caller)) { return callMethodMissing(context, self, selfType, method, block); } return method.call(context, self, selfType, methodName, block); }
public IRubyObject call(ThreadContext context, IRubyObject caller, IRubyObject self, IRubyObject arg0, Block block) { RubyClass selfType = getClass(self); DynamicMethod method = selfType.searchWithRefinements(methodName, context.getCurrentStaticScope()); if (methodMissing(method, caller)) { return callMethodMissing(context, self, selfType, method, arg0, block); } return method.call(context, self, selfType, methodName, arg0, block); }
public IRubyObject call(ThreadContext context, IRubyObject caller, IRubyObject self, IRubyObject arg0, IRubyObject arg1) { RubyClass selfType = getClass(self); DynamicMethod method = selfType.searchWithRefinements(methodName, context.getCurrentStaticScope()); if (methodMissing(method, caller)) { return callMethodMissing(context, self, selfType, method, arg0, arg1); } return method.call(context, self, selfType, methodName, arg0, arg1); }
public IRubyObject call(ThreadContext context, IRubyObject caller, IRubyObject self, IRubyObject arg0, Block block) { RubyClass selfType = getClass(self); DynamicMethod method = selfType.searchWithRefinements(methodName, context.getCurrentStaticScope()); if (methodMissing(method, caller)) { return callMethodMissing(context, self, selfType, method, arg0, block); } return method.call(context, self, selfType, methodName, arg0, block); }
public IRubyObject call(ThreadContext context, IRubyObject caller, IRubyObject self, IRubyObject arg0, IRubyObject arg1, IRubyObject arg2, Block block) { RubyClass selfType = getClass(self); DynamicMethod method = selfType.searchWithRefinements(methodName, context.getCurrentStaticScope()); if (methodMissing(method, caller)) { return callMethodMissing(context, self, selfType, method, arg0, arg1, arg2, block); } return method.call(context, self, selfType, methodName, arg0, arg1, arg2); }
public IRubyObject call(ThreadContext context, IRubyObject caller, IRubyObject self, IRubyObject arg0, IRubyObject arg1, Block block) { RubyClass selfType = getClass(self); DynamicMethod method = selfType.searchWithRefinements(methodName, context.getCurrentStaticScope()); if (methodMissing(method, caller)) { return callMethodMissing(context, self, selfType, method, arg0, arg1, block); } return method.call(context, self, selfType, methodName, arg0, arg1, block); }
public IRubyObject call(ThreadContext context, IRubyObject caller, IRubyObject self, IRubyObject arg0, IRubyObject arg1, IRubyObject arg2) { RubyClass selfType = getClass(self); DynamicMethod method = selfType.searchWithRefinements(methodName, context.getCurrentStaticScope()); if (methodMissing(method, caller)) { return callMethodMissing(context, self, selfType, method, arg0, arg1, arg2); } return method.call(context, self, selfType, methodName, arg0, arg1, arg2); }
public IRubyObject call(ThreadContext context, IRubyObject caller, IRubyObject self) { RubyClass selfType = getClass(self); DynamicMethod method = selfType.searchWithRefinements(methodName, context.getCurrentStaticScope()); if (methodMissing(method, caller)) { return callMethodMissing(context, self, selfType, method); } return method.call(context, self, selfType, methodName); }
public IRubyObject call(ThreadContext context, IRubyObject caller, IRubyObject self, IRubyObject arg0) { RubyClass selfType = getClass(self); DynamicMethod method = selfType.searchWithRefinements(methodName, context.getCurrentStaticScope()); if (methodMissing(method, caller)) { return callMethodMissing(context, self, selfType, method, arg0); } return method.call(context, self, selfType, methodName, arg0); }
@Override public IRubyObject call(ThreadContext context, IRubyObject caller, IRubyObject self, IRubyObject... args) { RubyClass selfType = getClass(self); DynamicMethod method = selfType.searchWithRefinements(methodName, context.getCurrentStaticScope()); if (methodMissing(method, caller)) { return callMethodMissing(context, self, selfType, method, args); } return method.call(context, self, selfType, methodName, args); }
public IRubyObject call(ThreadContext context, IRubyObject caller, IRubyObject self) { RubyClass selfType = getClass(self); DynamicMethod method = selfType.searchWithRefinements(methodName, context.getCurrentStaticScope()); if (methodMissing(method, caller)) { return callMethodMissing(context, self, selfType, method); } return method.call(context, self, selfType, methodName); }
public IRubyObject call(ThreadContext context, IRubyObject caller, IRubyObject self, IRubyObject arg0) { RubyClass selfType = getClass(self); DynamicMethod method = selfType.searchWithRefinements(methodName, context.getCurrentStaticScope()); if (methodMissing(method, caller)) { return callMethodMissing(context, self, selfType, method, arg0); } return method.call(context, self, selfType, methodName, arg0); }
@Override public IRubyObject call(ThreadContext context, IRubyObject caller, IRubyObject self, IRubyObject... args) { RubyClass selfType = getClass(self); DynamicMethod method = selfType.searchWithRefinements(methodName, context.getCurrentStaticScope()); if (methodMissing(method, caller)) { return callMethodMissing(context, self, selfType, method, args); } return method.call(context, self, selfType, methodName, args); }
public IRubyObject call(ThreadContext context, IRubyObject caller, IRubyObject self, IRubyObject[] args, Block block) { RubyClass selfType = getClass(self); DynamicMethod method = selfType.searchWithRefinements(methodName, context.getCurrentStaticScope()); if (methodMissing(method, caller)) { return callMethodMissing(context, self, selfType, method, args, block); } return method.call(context, self, selfType, methodName, args, block); }
public IRubyObject call(ThreadContext context, IRubyObject caller, IRubyObject self, IRubyObject arg0, IRubyObject arg1) { RubyClass selfType = getClass(self); DynamicMethod method = selfType.searchWithRefinements(methodName, context.getCurrentStaticScope()); if (methodMissing(method, caller)) { return callMethodMissing(context, self, selfType, method, arg0, arg1); } return method.call(context, self, selfType, methodName, arg0, arg1); }
public IRubyObject call(ThreadContext context, IRubyObject caller, IRubyObject self, IRubyObject arg0, IRubyObject arg1, IRubyObject arg2) { RubyClass selfType = getClass(self); DynamicMethod method = selfType.searchWithRefinements(methodName, context.getCurrentStaticScope()); if (methodMissing(method, caller)) { return callMethodMissing(context, self, selfType, method, arg0, arg1, arg2); } return method.call(context, self, selfType, methodName, arg0, arg1, arg2); }