Core module

The Core module loads some helper functions and globals useful in all stages of a mods life cycle.

All modules have an __index method into core.

Usage

local Core = require('__stdlib__/stdlib/core')

Functions

log_and_print(msg) Prints and logs the msg
VALID_FILTER(v) Simple valid check, only available in control stage.
inspect(self) Inspect the class
help(self) Help function available on everything.

Functions

# log_and_print(msg)

Prints and logs the msg

Parameters: Returns:
  • (boolean) true if the message was printed to someone
# VALID_FILTER(v)

Simple valid check, only available in control stage.

DEPRECATED

Parameters:
  • v
# inspect(self)

Inspect the class

Parameters:
  • self
# help(self)

Help function available on everything.

Parameters:
  • self