Authors: bartlomiej.gorny@erlang-solutions.com.
field() = atom()
import_result() = {imported, module(), record_name(), arity()} | {overwritten, module(), record_name(), arity()} | {ignored, module(), record_name(), arity(), module()}
limit() = all | none | field() | [field()]
listentry() = {module(), record_name(), [field()], limit()}
record_name() = atom()
compound
clear/0 | remove all imported definitions, destroy the table, clean up. |
clear/1 | remove definitions imported from a module. |
get_list/0 | returns a list of active record definitions. |
import/1 | import record definitions from a module. |
is_active/0 | quickly check if we want to do any record formatting. |
limit/3 | Limit output to selected fields of a record (can be 'none', 'all', a field or a list of fields). |
list/0 | prints out all "known" (imported) record definitions and their limit settings. |
clear() -> any()
remove all imported definitions, destroy the table, clean up
clear(Module) -> any()
remove definitions imported from a module.
get_list() -> [listentry()]
returns a list of active record definitions
import(Modules::module() | [module()]) -> import_result() | [import_result()]
import record definitions from a module. If a record definition of the same name and arity has already been imported from another module then the new definition is ignored (returned info tells you from which module the existing definition was imported). You have to choose one and possibly remove the old one using clear/1. Supports importing multiple modules at once (by giving a list of atoms as an argument).
is_active() -> boolean()
quickly check if we want to do any record formatting
limit(Name::record_name(), Arity::arity(), Limit::limit()) -> ok | {error, any()}
Limit output to selected fields of a record (can be 'none', 'all', a field or a list of fields). Limit set to 'none' means there is no limit, and all fields are displayed; limit 'all' means that all fields are squashed and only record name will be shown.
list() -> any()
prints out all "known" (imported) record definitions and their limit settings. Printout tells module a record originates from, its name and a list of field names, plus the record's arity (may be handy if handling big records) and a list of field it limits its output to, if set.
Generated by EDoc