@Deprecated public static RubyArray argsCat(IRubyObject first, IRubyObject second) { return argsCat(first.getRuntime().getCurrentContext(), first, second); }
@Deprecated public static RubyArray argsCat(IRubyObject first, IRubyObject second) { return argsCat(first.getRuntime().getCurrentContext(), first, second); }
@Override public IRubyObject interpret(Ruby runtime, ThreadContext context, IRubyObject self, Block aBlock) { IRubyObject args = firstNode.interpret(runtime, context, self, aBlock); IRubyObject secondInterpret = secondNode.interpret(runtime, context, self, aBlock); return Helpers.argsCat(args, secondInterpret); } }
@Override public IRubyObject interpret(Ruby runtime, ThreadContext context, IRubyObject self, Block aBlock) { IRubyObject args = firstNode.interpret(runtime, context, self, aBlock); IRubyObject secondInterpret = secondNode.interpret(runtime, context, self, aBlock); return Helpers.argsCat(args, secondInterpret); } }
@Override public Object retrieve(ThreadContext context, IRubyObject self, DynamicScope currDynScope, Object[] temp) { IRubyObject v1 = (IRubyObject)a1.retrieve(context, self, currDynScope, temp); IRubyObject v2 = (IRubyObject)a2.retrieve(context, self, currDynScope, temp); return isArgsPush ? Helpers.argsPush((RubyArray) v1, v2) : Helpers.argsCat(v1, v2); }
@Override public Object retrieve(ThreadContext context, IRubyObject self, DynamicScope currDynScope, Object[] temp) { IRubyObject v1 = (IRubyObject)a1.retrieve(context, self, currDynScope, temp); IRubyObject v2 = (IRubyObject)a2.retrieve(context, self, currDynScope, temp); return isArgsPush ? Helpers.argsPush((RubyArray) v1, v2) : Helpers.argsCat(v1, v2); }
@Override public Object interpret(ThreadContext context, StaticScope currScope, DynamicScope currDynScope, IRubyObject self, Object[] temp) { IRubyObject v1 = (IRubyObject)getAppendingArg().retrieve(context, self, currScope, currDynScope, temp); IRubyObject v2 = (IRubyObject)getAppendedArg().retrieve(context, self, currScope, currDynScope, temp); return isArgsPush ? Helpers.argsPush(v1, v2) : Helpers.argsCat(context, v1, v2); }
@Override public Object interpret(ThreadContext context, StaticScope currScope, DynamicScope currDynScope, IRubyObject self, Object[] temp) { IRubyObject v1 = (IRubyObject)getAppendingArg().retrieve(context, self, currScope, currDynScope, temp); IRubyObject v2 = (IRubyObject)getAppendedArg().retrieve(context, self, currScope, currDynScope, temp); return isArgsPush ? Helpers.argsPush(v1, v2) : Helpers.argsCat(context, v1, v2); }