Object

Class Object is the root of the class hierarchy. Every class has Object as a superclass.

Instance attributes

__class ⇒ Class

Object of Class class

Instance methods

__get(name) ⇒ Value

Get any attribute value by it’s name

Table 1. Parameters

name

String

Name of the attribute

Return

Attribute value, or null if the object has no attribute with this name.

__invoke(name, …​) ⇒ Value

Execute any method, by it’s name

Table 2. Parameters

name

String

Name of the method

…​

Value

Any values that are required for method execution

Return

Method return value if method returns something. Calling a method that does not exist causes a runtime error.