class Kaze::Klass
- Kaze::Klass
- Kaze::Callable
- Reference
- Object
Overview
Runtime representation of a class.
Defined in:
klass.crConstructors
Instance Method Summary
-
#arity : Int32
Arity of a class is zero if it has no
init
method, else the arity equals that of the initializer. - #call(interpreter : Interpreter, arguments : Array(VG)) : VG
- #find_method(name : String) : Function | Nil
- #name : String
- #name=(name : String)
- #superclass : Klass | Nil
- #superclass=(superclass : Klass | Nil)
-
#to_s : String
Returns a nicely readable and concise string representation of this object, typically intended for users.
Instance methods inherited from class Kaze::Callable
arity : Int32
arity,
call(interpreter : Interpreter, arguments : Array(VG)) : VG
call,
to_s : String
to_s
Constructor Detail
Instance Method Detail
def arity : Int32
#
Arity of a class is zero if it has no init
method, else the arity equals that of the initializer.
def to_s : String
#
Description copied from class Object
Returns a nicely readable and concise string representation of this object, typically intended for users.
This method should usually not be overridden. It delegates to
#to_s(IO)
which can be overridden for custom implementations.
Also see #inspect
.