|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jruby.RubyObject
org.jruby.Method
The RubyMethod class represents a Method object. You can get such a method by calling the "method" method of an object.
Field Summary | |
protected RubyModule |
implementationModule
|
protected ICallable |
method
|
protected java.lang.String |
methodName
|
protected RubyModule |
originModule
|
protected java.lang.String |
originName
|
protected IRubyObject |
receiver
|
Fields inherited from class org.jruby.RubyObject |
runtime |
Fields inherited from interface org.jruby.runtime.builtin.IRubyObject |
NULL_ARRAY |
Constructor Summary | |
protected |
Method(Ruby runtime,
RubyClass rubyClass)
|
Method Summary | |
RubyFixnum |
arity()
Returns the number of arguments a method accepted. |
static IRubyObject |
bmcall(IRubyObject blockArg,
IRubyObject arg1,
IRubyObject self)
Delegate a block call to a bound method call. |
IRubyObject |
call(IRubyObject[] args)
Call the method. |
static RubyClass |
createMethodClass(Ruby ruby)
Create the Method class and add it to the Ruby runtime. |
static IRubyObject |
mproc(IRubyObject recv)
Create a Proc object which is called like a ruby method. |
static Method |
newMethod(RubyModule implementationModule,
java.lang.String methodName,
RubyModule originModule,
java.lang.String originName,
ICallable method,
IRubyObject receiver)
|
IRubyObject |
to_proc()
Create a Proc object. |
UnboundMethod |
unbind()
|
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
protected RubyModule implementationModule
protected java.lang.String methodName
protected RubyModule originModule
protected java.lang.String originName
protected ICallable method
protected IRubyObject receiver
Constructor Detail |
protected Method(Ruby runtime, RubyClass rubyClass)
Method Detail |
public static RubyClass createMethodClass(Ruby ruby)
public static Method newMethod(RubyModule implementationModule, java.lang.String methodName, RubyModule originModule, java.lang.String originName, ICallable method, IRubyObject receiver)
public IRubyObject call(IRubyObject[] args)
public RubyFixnum arity()
public IRubyObject to_proc()
public static IRubyObject mproc(IRubyObject recv)
public static IRubyObject bmcall(IRubyObject blockArg, IRubyObject arg1, IRubyObject self)
public UnboundMethod unbind()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |