Posexional.Field.Empty (posexional v1.2.0)

View Source

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

Summary

Types

t()

@type t() :: %Posexional.Field.Empty{filler: term(), size: term()}

Functions

new(size, opts \\ [])

@spec new(integer(), Keyword.t()) :: t()

write(empty)

@spec write(t()) :: 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})
"  "