Class JavaMethod.JavaMethodZeroOrOne

All Implemented Interfaces:
Cloneable, MethodArgs2, NativeCallMethod
Enclosing class:
JavaMethod

public abstract static class JavaMethod.JavaMethodZeroOrOne extends JavaMethod.JavaMethodZeroOrOneOrN
  • Constructor Details

  • Method Details

    • call

      public final IRubyObject call(ThreadContext context, IRubyObject self, RubyModule clazz, String name, IRubyObject[] args)
      Description copied from class: DynamicMethod
      A default implementation of n-arity, non-block 'call' method, which simply calls the n-arity, block-receiving version with the arg list and Block.NULL_BLOCK.
      Specified by:
      call in class JavaMethod.JavaMethodN
      Parameters:
      context - The thread context for the currently executing thread
      self - The 'self' or 'receiver' object to use for this call
      clazz - The Ruby class against which this method is binding
      name - The incoming name used to invoke this method
      args - The first argument to this invocation
      Returns:
      The result of the call