posexional v1.0.0 Posexional.Field.Empty View Source

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 \\ [])

View Source
new(integer(), Keyword.t()) :: %Posexional.Field.Empty{
  filler: term(),
  size: term()
}
Link to this function

write(empty)

View Source
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})
"  "