Save This Page
Home » jruby-src-1.1.3 » org.jruby » [javadoc | source]
org.jruby
public class: RubyMethod [javadoc | source]
java.lang.Object
   org.jruby.RubyObject
      org.jruby.RubyMethod

All Implemented Interfaces:
    VALUE

Direct Known Subclasses:
    RubyUnboundMethod

The RubyMethod class represents a RubyMethod object. You can get such a method by calling the "method" method of an object. Note: This was renamed from Method.java
Field Summary
protected  RubyModule implementationModule     
protected  String methodName     
protected  RubyModule originModule     
protected  String originName     
protected  DynamicMethod method     
protected  IRubyObject receiver     
Constructor:
 protected RubyMethod(Ruby runtime,
    RubyClass rubyClass) 
Method from org.jruby.RubyMethod Summary:
arity,   bmcall,   call,   createMethodClass,   inspect,   newMethod,   op_equal,   rbClone,   to_proc,   unbind
Methods from org.jruby.RubyObject:
callInit,   defineSingletonMethod,   funcall,   funcall,   funcall,   funcall3,   getClassVarSingleton,   getInstanceVar,   getInstanceVar,   getInstanceVariables,   getRuby,   getRubyClass,   getSingletonClass,   infectObject,   isFalse,   isFrozen,   isImmediate,   isInstanceVarDefined,   isNil,   isSpecialConst,   isTaint,   isTrue,   m_clone,   m_dup,   m_equal,   m_freeze,   m_frozen,   m_id,   m_inspect,   m_instance_of,   m_kind_of,   m_methods,   m_private_methods,   m_protected_methods,   m_singleton_methods,   m_taint,   m_tainted,   m_to_s,   m_type,   m_untaint,   setFrozen,   setImmediate,   setInstanceVar,   setInstanceVar,   setInstanceVariables,   setRuby,   setRubyClass,   setTaint,   setupClone,   setupObject
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.jruby.RubyMethod Detail:
 public RubyFixnum arity() 
    Returns the number of arguments a method accepted.
 public static IRubyObject bmcall(IRubyObject blockArg,
    IRubyObject arg1,
    IRubyObject self,
    Block unusedBlock) 
    Delegate a block call to a bound method call. Used by the RubyMethod#to_proc method.
 public IRubyObject call(ThreadContext context,
    IRubyObject[] args,
    Block block) 
    Call the method.
 public static RubyClass createMethodClass(Ruby runtime) 
    Create the RubyMethod class and add it to the Ruby runtime.
 public IRubyObject inspect() 
 public static RubyMethod newMethod(RubyModule implementationModule,
    String methodName,
    RubyModule originModule,
    String originName,
    DynamicMethod method,
    IRubyObject receiver) 
 public RubyBoolean op_equal(ThreadContext context,
    IRubyObject other) 
 public RubyMethod rbClone() 
 public IRubyObject to_proc(ThreadContext context,
    Block unusedBlock) 
    Create a Proc object.
 public RubyUnboundMethod unbind(Block unusedBlock)