Gcode.Model.Skip (gcode v0.4.0)
A G-code skip.
Link to this section Summary
Link to this section Types
Link to this type
error()
Specs
error() :: {:skip_error, String.t()}
Specs
t() :: %Gcode.Model.Skip{number: Gcode.Option.t(non_neg_integer())}
Link to this section Functions
Link to this function
init()
Specs
init() :: Gcode.Result.t(t())
Initialise a skip without a number.
Example
iex> Skip.init()
{:ok, %Skip{number: none()}}
Link to this function
init(number)
Specs
init(non_neg_integer()) :: Gcode.Result.t(t(), error())
Initialise a skip with a number.
Example
iex> 13
...> |> Skip.init()
{:ok, %Skip{number: some(13)}}