org.jruby.runtime
Class Arity
java.lang.Object
org.jruby.runtime.Arity
- public final class Arity
- extends java.lang.Object
The arity of a method is the number of arguments it takes.
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
createArity
public static Arity createArity(int value)
fixed
public static Arity fixed(int arity)
optional
public static Arity optional()
required
public static Arity required(int minimum)
noArguments
public static Arity noArguments()
singleArgument
public static Arity singleArgument()
getValue
public int getValue()
checkArity
public void checkArity(Ruby ruby,
IRubyObject[] args)
equals
public boolean equals(java.lang.Object other)
hashCode
public int hashCode()
Copyright © 2002 Jan Arne Petersen. All Rights Reserved.