Package org.jruby
Class RubySymbol.SymbolProcBody
java.lang.Object
org.jruby.runtime.BlockBody
org.jruby.runtime.ContextAwareBlockBody
org.jruby.RubySymbol.SymbolProcBody
- Enclosing class:
RubySymbol
-
Field Summary
Fields inherited from class org.jruby.runtime.ContextAwareBlockBody
scope
Fields inherited from class org.jruby.runtime.BlockBody
NULL_BODY, signature, testBlockBody
-
Constructor Summary
ConstructorsConstructorDescriptionSymbolProcBody
(Ruby runtime, String id, RubySymbol symbol) SymbolProcBody
(Ruby runtime, String id, RubySymbol symbol, StaticScope scope) -
Method Summary
Modifier and TypeMethodDescriptionprotected 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.getFile()
Get the filename for this blockgetId()
int
getLine()
get The line number for this blockyield
(ThreadContext context, Block block, IRubyObject[] args, IRubyObject self, Block blockArg) yield
(ThreadContext context, Block block, IRubyObject value, Block blockArg) yieldSpecific
(ThreadContext context, Block block, IRubyObject arg0) yieldSpecific
(ThreadContext context, Block block, IRubyObject arg0, IRubyObject arg1) yieldSpecific
(ThreadContext context, Block block, IRubyObject arg0, IRubyObject arg1, IRubyObject arg2) Methods inherited from class org.jruby.runtime.ContextAwareBlockBody
getStaticScope, post, pre, setStaticScope
Methods inherited from class org.jruby.runtime.BlockBody
arity, call, call, call, call, call, call, call, call, call, call, callDirect, canCallDirect, getSignature, getTestBlockBody, isGiven, isRubyBlock, prepareArgumentsForCall, testBlockBody, yield, yield, yieldDirect, yieldSpecific
-
Constructor Details
-
SymbolProcBody
-
SymbolProcBody
-
-
Method Details
-
yield
public IRubyObject yield(ThreadContext context, Block block, IRubyObject[] args, IRubyObject self, Block blockArg) -
yield
-
doYield
Description copied from class:BlockBody
Subclass specific yield implementation.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. -
doYield
protected IRubyObject doYield(ThreadContext context, Block block, IRubyObject[] args, IRubyObject self) Description copied from class:BlockBody
Subclass specific yield implementation.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. -
yieldSpecific
- Overrides:
yieldSpecific
in classBlockBody
-
yieldSpecific
public IRubyObject yieldSpecific(ThreadContext context, Block block, IRubyObject arg0, IRubyObject arg1) - Overrides:
yieldSpecific
in classBlockBody
-
yieldSpecific
public IRubyObject yieldSpecific(ThreadContext context, Block block, IRubyObject arg0, IRubyObject arg1, IRubyObject arg2) - Overrides:
yieldSpecific
in classBlockBody
-
getFile
Description copied from class:BlockBody
Get the filename for this block -
getLine
public int getLine()Description copied from class:BlockBody
get The line number for this block -
getId
-
getArgumentDescriptors
- Overrides:
getArgumentDescriptors
in classBlockBody
-