Ksc.Compiler.ElixirCompiler (Ksc v0.2.0)

Copy Markdown View Source

Generates Elixir source code from ClassSpec structs.

Summary

Functions

Compile a ClassSpec into an Elixir source code string.

Functions

compile(spec, opts \\ [])

Compile a ClassSpec into an Elixir source code string.

Options:

  • :writer — when true, also generate to_binary/1 + to_file/2 and the writer support functions on every non-parameterised module. Default false.