mirror of
https://github.com/CPunch/Cosmo.git
synced 2024-11-05 16:20:06 +00:00
Added '__equal' metamethod docs
This commit is contained in:
parent
b545e8e5e3
commit
07ca82f968
@ -94,6 +94,7 @@ that are called on special operators.
|
|||||||
| __init | `(<object>, ...)` | Newly crafted object is passed, called on instantiation |
|
| __init | `(<object>, ...)` | Newly crafted object is passed, called on instantiation |
|
||||||
| __newindex | `(<object>, key, newValue)` | Called on new index using the '[] = ' operator |
|
| __newindex | `(<object>, key, newValue)` | Called on new index using the '[] = ' operator |
|
||||||
| __index | `(<object>, key)` -> `value` | Called on index using the '[]' operator |
|
| __index | `(<object>, key)` -> `value` | Called on index using the '[]' operator |
|
||||||
|
| __equal | `(<object>, <object>)` -> `<boolean>` | Called on equality fail if both protos have the same `__equal` metamethod defined |
|
||||||
| __tostring | `(<object>)` -> `<string>` | Called when tostring() is called on an object |
|
| __tostring | `(<object>)` -> `<string>` | Called when tostring() is called on an object |
|
||||||
| __tonumber | `(<object>)` -> `<number>` | Called when tonumber() is called on an object |
|
| __tonumber | `(<object>)` -> `<number>` | Called when tonumber() is called on an object |
|
||||||
| __count | `(<object>)` -> `<number>` | Called when object is used with the '#' count operator |
|
| __count | `(<object>)` -> `<number>` | Called when object is used with the '#' count operator |
|
||||||
|
Loading…
Reference in New Issue
Block a user