gcode/lib/model/serialise.ex
James Harton ccf4635cca feat(model,serialise): Implement a basic G-Code model and serialiser.
It's not very thorough at the moment, but it should work for now.
2021-01-04 22:14:40 +13:00

10 lines
234 B
Elixir

defprotocol Gcode.Model.Serialise do
alias Gcode.Result
@moduledoc """
A protocol which is used to serialise the model into a string.
"""
@spec serialise(Serialise.t()) :: Result.t([String.t()])
def serialise(value)
end