Kungfuig.Parser (Kungfuig v1.2.0)

View Source

The parser for the value read from a config.

It is designed to simplify reading and instantiating values read from json to elixir entities.

Supported types:

  • {"type": "atom", "value": "foo"} — the atom :foo
  • {"type": "existing_atom", "value": "foo"} — the existing atom :foo
  • {"type": "function", "module": module, "function": function, "arity": arity} — the function to instantiate
  • {"type": "existing_function", "module": module, "function": function, "arity": arity} — the existing function to instantiate
  • {"type": "tuple", "value": ["foo", 42]} — the tuple {"foo", 42}

Summary

Functions

Retrieves and instantiates the actial value out of json object

Functions

value(ordinar)

Retrieves and instantiates the actial value out of json object