Gcode.Model.Expr.String (gcode v1.0.0)

Represents a string expression in G-code.

Link to this section Summary

Functions

Initialise a comment.

Link to this section Types

@type t() :: %Gcode.Model.Expr.String{value: Gcode.Option.t(t())}

Link to this section Functions

@spec init(String.t()) :: Gcode.Result.t(t())

Initialise a comment.

example

Example

iex> "Doc, in the carpark, with plutonium"
...> |> String.init()
{:ok, %String{value: "Doc, in the carpark, with plutonium"}}