All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.jruby.ast.ZYieldNode Maven / Gradle / Ivy

There is a newer version: 9.4.9.0
Show newest version
/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package org.jruby.ast;

import org.jruby.Ruby;
import org.jruby.lexer.yacc.ISourcePosition;
import org.jruby.runtime.Block;
import org.jruby.runtime.ThreadContext;
import org.jruby.runtime.builtin.IRubyObject;

/**
 *
 * @author enebo
 */
public class ZYieldNode extends YieldNode {
    public ZYieldNode(ISourcePosition position) {
        super(position, null, true);
    }

    @Override
    public IRubyObject interpret(Ruby runtime, ThreadContext context, IRubyObject self, Block aBlock) {
        return context.getCurrentFrame().getBlock().yieldSpecific(context);
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy