Erlang - Mofule Info

-module_name:module_info()
-module_name:module_info(attribute_name)
functions module_info/0 and module_info/1 are automatically created every time a module is compiled.
It has to load the beam code for the module.

-beam_lib:chunks(“file.beam”, [attributes]).
It functions without loading the beam code.

Predefined Module Attributes:
-module(modname).
-import(Mod, [Name1/Arity1, Name2/Arity2,...]).
-export([Name1/Arity1, Name2/Arity2, ...]).
-compile(Options).
-vsn(Version).
Note that, -record(…), -include(…) and -include_lib(…) have a similar syntax but are not considered module attributes.