Gcode.Model.Skip (gcode v0.4.1)

A G-code skip.

Link to this section Summary

Functions

Initialise a skip without a number.

Initialise a skip with a number.

Link to this section Types

Specs

error() :: {:skip_error, String.t()}

Specs

t() :: %Gcode.Model.Skip{number: Gcode.Option.t(non_neg_integer())}

Link to this section Functions

Specs

init() :: Gcode.Result.t(t())

Initialise a skip without a number.

Example

iex> Skip.init()
{:ok, %Skip{number: none()}}

Specs

Initialise a skip with a number.

Example

iex> 13
...> |> Skip.init()
{:ok, %Skip{number: some(13)}}