Gcode.Model.Expr.String (gcode v0.4.0)
Represents a string expression in G-code.
Link to this section Summary
Functions
Initialise a comment.
Link to this section Types
Specs
t() :: %Gcode.Model.Expr.String{value: Gcode.Option.t(t())}
Link to this section Functions
Link to this function
init(comment)
Specs
init(String.t()) :: Gcode.Result.t(t())
Initialise a comment.
Example
iex> "Doc, in the carpark, with plutonium"
...> |> String.init()
{:ok, %String{value: "Doc, in the carpark, with plutonium"}}