public static final class RubySymbol.SymbolProcBody extends ContextAwareBlockBody
scopeNULL_BODY, signature, testBlockBody| Constructor and Description |
|---|
SymbolProcBody(Ruby runtime,
java.lang.String symbol) |
SymbolProcBody(Ruby runtime,
java.lang.String symbol,
StaticScope scope) |
| Modifier and Type | Method and Description |
|---|---|
protected IRubyObject |
doYield(ThreadContext context,
Block block,
IRubyObject value)
Subclass specific yield implementation.
|
protected IRubyObject |
doYield(ThreadContext context,
Block block,
IRubyObject[] args,
IRubyObject self)
Subclass specific yield implementation.
|
ArgumentDescriptor[] |
getArgumentDescriptors() |
java.lang.String |
getFile()
Get the filename for this block
|
int |
getLine()
get The line number for this block
|
IRubyObject |
yield(ThreadContext context,
Block block,
IRubyObject[] args,
IRubyObject self,
Block blockArg) |
IRubyObject |
yield(ThreadContext context,
Block block,
IRubyObject value,
Block blockArg) |
IRubyObject |
yieldSpecific(ThreadContext context,
Block block,
IRubyObject arg0) |
IRubyObject |
yieldSpecific(ThreadContext context,
Block block,
IRubyObject arg0,
IRubyObject arg1) |
IRubyObject |
yieldSpecific(ThreadContext context,
Block block,
IRubyObject arg0,
IRubyObject arg1,
IRubyObject arg2) |
getStaticScope, post, pre, setStaticScopearity, call, call, call, call, call, call, call, call, call, call, callDirect, canCallDirect, getSignature, getTestBlockBody, isGiven, isRubyBlock, prepareArgumentsForCall, testBlockBody, yield, yield, yieldDirect, yieldSpecificpublic SymbolProcBody(Ruby runtime, java.lang.String symbol)
public SymbolProcBody(Ruby runtime, java.lang.String symbol, StaticScope scope)
public IRubyObject yield(ThreadContext context, Block block, IRubyObject[] args, IRubyObject self, Block blockArg)
public IRubyObject yield(ThreadContext context, Block block, IRubyObject value, Block blockArg)
protected IRubyObject doYield(ThreadContext context, Block block, IRubyObject value)
BlockBody
Should not be called directly. Gets called by BlockBody.yield(ThreadContext, Block, org.jruby.runtime.builtin.IRubyObject)
after ensuring that any common yield logic is taken care of.
protected IRubyObject doYield(ThreadContext context, Block block, IRubyObject[] args, IRubyObject self)
BlockBody
Should not be called directly. Gets called by BlockBody.yield(ThreadContext, Block, org.jruby.runtime.builtin.IRubyObject[], org.jruby.runtime.builtin.IRubyObject)
after ensuring that all common yield logic is taken care of.
public IRubyObject yieldSpecific(ThreadContext context, Block block, IRubyObject arg0)
yieldSpecific in class BlockBodypublic IRubyObject yieldSpecific(ThreadContext context, Block block, IRubyObject arg0, IRubyObject arg1)
yieldSpecific in class BlockBodypublic IRubyObject yieldSpecific(ThreadContext context, Block block, IRubyObject arg0, IRubyObject arg1, IRubyObject arg2)
yieldSpecific in class BlockBodypublic java.lang.String getFile()
BlockBodypublic int getLine()
BlockBodypublic ArgumentDescriptor[] getArgumentDescriptors()
getArgumentDescriptors in class BlockBodyCopyright © 2001-2023 JRuby. All Rights Reserved.