Record.extract_all
extract_all
, go back to Record module for more information.
Specs
Extracts all records information from an Erlang file.
Returns a keyword list of {record_name, fields}
tuples where record_name
is the name of an extracted record and fields
is a list of {field, value}
tuples representing the fields for that record.
Options
This function accepts the following options, which are exclusive to each other (i.e., only one of them can be used in the same call):
:from
- (binary representing a path to a file) path to the Erlang file that contains the record definitions to extract; with this option, this function uses the same path lookup used by the-include
attribute used in Erlang modules.:from_lib
- (binary representing a path to a file) path to the Erlang file that contains the record definitions to extract; with this option, this function uses the same path lookup used by the-include_lib
attribute used in Erlang modules.
These options are expected to be literals (including the binary values) at compile time.