| Modifier and Type | Field and Description |
|---|---|
| private final RubyProc |
| Access | Constructor and Description |
|---|---|
| public | ProcMethod(RubyModule implementationClass, RubyProc proc, Visibility visibility, String name)
Constructor for ProcMethod. |
| Modifier and Type | Method and Description |
|---|---|
| public IRubyObject | call(ThreadContext
The thread context for the currently executing thread context, IRubyObject The 'self' or 'receiver' object to use for this call self, RubyModule The Ruby class against which this method is binding klazz, String The incoming name used to invoke this method name, IRubyObject[] The argument list to this invocation args, Block The block passed to this invocation block)Implements abstract org. The minimum 'call' method required for a dynamic method handle. |
| public DynamicMethod | dup()
Implements abstract org. Duplicate this method, returning DynamicMethod referencing the same code and with the same attributes. |
| public ArgumentDescriptor[] | getArgumentDescriptors()
Implements org. Get the array of ArgumentDescriptors that represent the arguments to this method. |
| public Arity | getArity()
Overrides org.
Deprecated
Retrieve the arity of this method, used for reporting arity to Ruby code. |
| public String | |
| public int | |
| public RubyProc | |
| public Signature | getSignature()
Overrides org. Implements org. Get the Signature for this method. |
| public boolean | |
| public void | setRuby2Keywords()
Overrides org. Implements org. Indicates the method will behave like a ruby2 keywords accepting method. |
| proc | back to summary |
|---|---|
| private final RubyProc proc | |
| ProcMethod | back to summary |
|---|---|
| public ProcMethod(RubyModule implementationClass, RubyProc proc, Visibility visibility, String name) Constructor for ProcMethod. | |
| call | back to summary |
|---|---|
| public IRubyObject call(ThreadContext context, IRubyObject self, RubyModule klazz, String name, IRubyObject[] args, Block block) Implements abstract org. Doc from org. The minimum 'call' method required for a dynamic method handle. Subclasses must implement this method, but may implement the other signatures to provide faster, non-boxing call paths. Typically subclasses will implement this method to check variable arity calls, then performing a specific-arity invocation to the appropriate method or performing variable-arity logic in-line.
| |
| dup | back to summary |
|---|---|
| public DynamicMethod dup() Implements abstract org. Doc from org. Duplicate this method, returning DynamicMethod referencing the same code and with the same attributes. It is not required that this method produce a new object if the semantics of the DynamicMethod subtype do not require such.
| |
| getArgumentDescriptors | back to summary |
|---|---|
| public ArgumentDescriptor[] getArgumentDescriptors() Implements org. Doc from org. Get the array of ArgumentDescriptors that represent the arguments to this method.
| |
| getArity | back to summary |
|---|---|
| public Arity getArity() Overrides org. Doc from org. Deprecated
Retrieve the arity of this method, used for reporting arity to Ruby code. This arity may or may not reflect the actual specific or variable arities of the referenced method.
| |
| getFile | back to summary |
|---|---|
| public String getFile() Implements org. Doc from org. Get the filename for the method.
| |
| getLine | back to summary |
|---|---|
| public int getLine() Implements org. Doc from org. Get the line number for the method. 0-based (ie. line 1 returns a 0)
| |
| getProc | back to summary |
|---|---|
| public RubyProc getProc() | |
| getSignature | back to summary |
|---|---|
| public Signature getSignature() Overrides org. Implements org. Doc from org. Get the Signature for this method. | |
| isSame | back to summary |
|---|---|
| public boolean isSame(DynamicMethod method) | |
| setRuby2Keywords | back to summary |
|---|---|
| public void setRuby2Keywords() Overrides org. Implements org. Doc from org. Indicates the method will behave like a ruby2 keywords accepting method. This must be a Ruby implementation to work. See Module#ruby2_keywords for information on the semantics of a method which is marked this way.
| |