Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package org.jruby.ir.instructions.calladapter;
 
    private Operand arg1;
    private Operand arg2;
    
    public TwoArgBlockOperandCallAdapter(CallSite callSiteOperand[] argsOperand closure) {
        super(callSiteclosure);
        
        assert args.length == 2;
        
         = args[0];
         = args[1];
    }
    @Override
    public Object call(ThreadContext contextIRubyObject selfIRubyObject receiverDynamicScope currDynScopeObject[] temp) {
        IRubyObject value1 = (IRubyObject.retrieve(contextselfcurrDynScopetemp);
        IRubyObject value2 = (IRubyObject.retrieve(contextselfcurrDynScopetemp);
        Block block = prepareBlock(contextselfcurrDynScopetemp);
        return .call(contextselfreceivervalue1value2block);
    }    
New to GrepCode? Check out our FAQ X