@Override public Object interpret(ThreadContext context, DynamicScope currDynScope, IRubyObject self, Object[] temp, Block block) { IRubyObject receiver = (IRubyObject) getObject().retrieve(context, self, currDynScope, temp); return context.runtime.newBoolean(isPublic(receiver, getName().string)); }
@Override public Object interpret(ThreadContext context, DynamicScope currDynScope, IRubyObject self, Object[] temp, Block block) { IRubyObject receiver = (IRubyObject) getObject().retrieve(context, self, currDynScope, temp); return context.runtime.newBoolean(isPublic(receiver, getName().string)); }
@Override public Instr cloneForInlining(InlinerInfo inlinerInfo) { return new MethodIsPublicInstr((Variable) getResult().cloneForInlining(inlinerInfo), getObject().cloneForInlining(inlinerInfo), (StringLiteral) getName().cloneForInlining(inlinerInfo)); }
@Override public Instr cloneForInlining(InlinerInfo inlinerInfo) { return new MethodIsPublicInstr((Variable) getResult().cloneForInlining(inlinerInfo), getObject().cloneForInlining(inlinerInfo), (StringLiteral) getName().cloneForInlining(inlinerInfo)); }