Skip to content

Commit 7b78997

Browse files
committed
move this down
1 parent e08e943 commit 7b78997

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

docs/standard_lib.md

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -106,11 +106,6 @@ copy = (arg) -> {k,v for k,v in pairs self}
106106

107107
## Class/Object Functions
108108

109-
### `is_object(value)`
110-
111-
**Deprecated:** Use `is_instance` or `is_class` instead. `is_object` returns
112-
truthy for instances, classes, and `__base` tables — any table with `__class`
113-
accessible. It cannot distinguish between these cases.
114109

115110
### `is_class(value)`
116111

@@ -200,6 +195,14 @@ assert type(MyClass) == "class"
200195
assert type(MyClass.__base) == "table"
201196
```
202197

198+
### `is_object(value)`
199+
200+
Legacy method for testing if a value is an instance.
201+
202+
**Deprecated:** Use `is_instance` or `is_class` instead. `is_object` returns
203+
truthy for instances, classes, and `__base` tables, any table with `__class`
204+
accessible. It cannot distinguish between these cases.
205+
203206
### `bind_methods(obj)`
204207

205208
Takes an instance of an object, returns a proxy to the object whose methods can

0 commit comments

Comments
 (0)