public class InterpretedBlock extends ContextAwareBlockBody
SharedScopeBlock, CompiledBlock| Modifier and Type | Field and Description |
|---|---|
protected Assigner |
assigner
Logic for assigning the blocks local variables
|
arity, scopeargumentType, ARRAY, EMPTY_PARAMETER_LIST, MULTIPLE_ASSIGNMENT, NULL_BODY, SINGLE_RESTARG, ZERO_ARGS| Constructor and Description |
|---|
InterpretedBlock(IterNode iterNode,
Arity arity,
int argumentType) |
InterpretedBlock(IterNode iterNode,
int argumentType) |
arity, cloneBlock, getStaticScope, post, pre, setStaticScopeasArgumentType, call, call, call, call, call, call, call, call, call, call, getArgumentType, getArgumentTypeWackyHack, getParameterList, isGiven, newArgsArrayFromArgsWithoutUnbox, newArgsArrayFromArgsWithUnbox, prepareArgumentsForCallprotected Assigner assigner
public InterpretedBlock(IterNode iterNode, int argumentType)
public static Block newInterpretedClosure(ThreadContext context, IterNode iterNode, IRubyObject self)
public static Block newInterpretedClosure(ThreadContext context, BlockBody body, IRubyObject self)
public IRubyObject yieldSpecific(ThreadContext context, Binding binding, Block.Type type)
yieldSpecific in class BlockBodypublic IRubyObject yieldSpecific(ThreadContext context, IRubyObject arg0, Binding binding, Block.Type type)
yieldSpecific in class BlockBodypublic IRubyObject yieldSpecific(ThreadContext context, IRubyObject arg0, IRubyObject arg1, Binding binding, Block.Type type)
yieldSpecific in class BlockBodypublic IRubyObject yieldSpecific(ThreadContext context, IRubyObject arg0, IRubyObject arg1, IRubyObject arg2, Binding binding, Block.Type type)
yieldSpecific in class BlockBodypublic IRubyObject yield(ThreadContext context, Binding binding, Block.Type type)
public IRubyObject yield(ThreadContext context, IRubyObject value, Binding binding, Block.Type type)
public IRubyObject yield(ThreadContext context, IRubyObject value, IRubyObject self, RubyModule klass, boolean alreadyArray, Binding binding, Block.Type type, Block block)
public IRubyObject yield(ThreadContext context, IRubyObject value, Binding binding, Block.Type type, Block block)
public IRubyObject yield(ThreadContext context, IRubyObject value, IRubyObject self, RubyModule klass, boolean alreadyArray, Binding binding, Block.Type type)
yield in class BlockBodycontext - represents the current thread-specific datavalue - The value to yield, either a single value or an array of valuesself - The current selfklass - alreadyArray - do we need an array or should we assume it already is one?public Node getBodyNode()
public String getFile()
BlockBodyCopyright © 2001-2013 JRuby. All Rights Reserved.