Class Inspect

An object that inspects a Lua table recursively and generates human-readable output.

Tables

Inspect.config Default Options

Methods

Inspect:new (options) Creates a new Inspector object.
Inspect:parse (o, options) Inspects an object recursively


Tables

Inspect.config
Default Options

Fields:

  • prettyfy Prettify Output
  • allow_tostring Tries calling the __tostring metamethod
  • level_depth Max depth to recurse into tables
  • type_values Variables types color configuration

Methods

Inspect:new (options)
Creates a new Inspector object.

Parameters:

  • options table A table containing options for the new inspector

Returns:

    Inspector A newly created inspector
Inspect:parse (o, options)
Inspects an object recursively

Parameters:

  • o table An object to inspect
  • options table Additional one-time options for this call

Returns:

    table parsed results of the inspection
generated by LDoc 1.4.6 Last updated 2019-05-06 01:56:35