mirror of
https://github.com/kikito/inspect.lua.git
synced 2024-12-15 14:34:21 +00:00
Update README.md
This commit is contained in:
parent
0997a4e846
commit
334e5cb68f
@ -124,7 +124,7 @@ assert(inspect(t5, {depth = 2}) == [[{
|
|||||||
|
|
||||||
`options.depth` defaults to infinite (`math.huge`).
|
`options.depth` defaults to infinite (`math.huge`).
|
||||||
|
|
||||||
### options.newline & options.indent
|
#### options.newline & options.indent
|
||||||
|
|
||||||
These are the strings used by `inspect` to respectively add a newline and indent each level of a table.
|
These are the strings used by `inspect` to respectively add a newline and indent each level of a table.
|
||||||
|
|
||||||
@ -142,7 +142,7 @@ assert(inspect(t) == [[{
|
|||||||
assert(inspect(t, {newline='@', indent="++"}), "{@++a = {@++++b = 1@++}@}"
|
assert(inspect(t, {newline='@', indent="++"}), "{@++a = {@++++b = 1@++}@}"
|
||||||
```
|
```
|
||||||
|
|
||||||
### options.process
|
#### options.process
|
||||||
|
|
||||||
`options.process` is a function which allow altering the passed object before transforming it into a string.
|
`options.process` is a function which allow altering the passed object before transforming it into a string.
|
||||||
A typical way to use it would be to remove certain values so that they don't appear at all.
|
A typical way to use it would be to remove certain values so that they don't appear at all.
|
||||||
|
Loading…
Reference in New Issue
Block a user