posexional v0.4.2 Posexional.Field.Empty

this module represent a single field in a row of a positional file without a value

Link to this section Summary

Link to this section Functions

Link to this function new(size, opts \\ [])
new(integer, char) :: %Posexional.Field.Empty{filler: term, size: term}
Link to this function write(empty)
write(%Posexional.Field.Empty{filler: term, size: term}) :: binary

outputs an empty field

Examples

iex> Posexional.Field.Empty.write(%Posexional.Field.Empty{filler: ?-, size: 10})
"----------"

iex> Posexional.Field.Empty.write(%Posexional.Field.Empty{filler: ?\s, size: 2})
"  "