All provides generic properties and methods baked into all values by default.
Properties and Methods
- <=>
- Return 0 if two values are exactly equivalent (===), null otherwise
- ==
- Return true if '<=>' method returns 0, false otherwise
- ===
- Return true if two values are exactly equivalent (===), false otherwise
- ~~
- Return true if '<=>' method returns 0, false otherwise
- <
- Return true if '<=>' method returns -1, false otherwise
- <=
- Return true if '<=>' method returns -1 or 0, false otherwise
- >
- Return true if '<=>' method returns 1, false otherwise
- >=
- Return true if '<=>' method returns 1 or 0, false otherwise
- callable?
- Return true if value is a method, closure or yielder, false otherwise
- Mixin
- Add a mixin to the beginning of object's the inheritance search order for properties and methods. This only works with values whose type can be set, typically collections. It returns 'self'.
- property
- Return the property's value
- type
- Return the type or array of types used for the value.
- uses?
- Return true if this property or method is defined for (inherited) by this value