Ergo.Context.new
You're seeing just the function
new
, go back to Ergo.Context module for more information.
Link to this function
new(input \\ "", options \\ [])
new
returns a newly initialised Context
with input
set to the string passed in.
Examples:
iex> alias Ergo.Context iex> assert %Context{status: :ok, input: "Hello World", line: 1, col: 1, index: 0, tracks: %{}} = Context.new("Hello World")