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

org.jruby.ir.instructions.ReceiveRestArgBase Maven / Gradle / Ivy

There is a newer version: 0.8.14
Show newest version
package org.jruby.ir.instructions;

import org.jruby.Ruby;
import org.jruby.ir.Operation;
import org.jruby.ir.operands.Variable;
import org.jruby.runtime.builtin.IRubyObject;

/*
 * Assign rest arg passed into method to a result variable
 * The specific instruction differs between Ruby language versions
 */
public abstract class ReceiveRestArgBase extends ReceiveArgBase {
    public ReceiveRestArgBase(Variable result, int argIndex) {
        super(Operation.RECV_REST_ARG, result, argIndex);
    }

    public abstract IRubyObject receiveRestArg(Ruby runtime, IRubyObject[] parameters);
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy