HostKit.Resources.Exs (host_kit v0.1.0-beta.6)

Copy Markdown View Source

Desired .exs file rendered from quoted Elixir AST.

Summary

Types

t()

@type t() :: %HostKit.Resources.Exs{
  ast: Macro.t(),
  depends_on: [term()],
  group: String.t() | nil,
  meta: map(),
  mode: non_neg_integer() | nil,
  owner: String.t() | nil,
  path: String.t()
}

Functions

id(exs)

new(path, ast, opts \\ [])

@spec new(String.t(), Macro.t(), keyword()) :: t()

render(exs)

@spec render(t()) :: {:ok, String.t()} | {:error, term()}

secret?(exs)

@spec secret?(t()) :: boolean()