Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 /*
  * To change this template, choose Tools | Templates
  * and open the template in the editor.
  */
 
 package org.jruby.ast;
 
 import org.jruby.Ruby;

Author(s):
enebo
public class YieldTwoNode extends YieldNode {
    private final Node argument1;
    private final Node argument2;
    public YieldTwoNode(ISourcePosition positionArrayNode args) {
        super(positionargstrue);
         = args.get(0);
         = args.get(1);
    }
    @Override
    public IRubyObject interpret(Ruby runtimeThreadContext contextIRubyObject selfBlock aBlock) {
        return context.getCurrentFrame().getBlock().yieldSpecific(context,
                .interpret(runtimecontextselfaBlock),
                .interpret(runtimecontextselfaBlock));
    }
New to GrepCode? Check out our FAQ X