View Source IO.ANSI.Table.Spec.AlignAttrs (IO ANSI Table v1.0.18)
Derives the align attributes of a table.
Link to this section Summary
Functions
Derives the align attributes of a table.
Link to this section Functions
Specs
derive_and_put(IO.ANSI.Table.Spec.t()) :: IO.ANSI.Table.Spec.t()
Derives the align attributes of a table.
Examples
iex> alias IO.ANSI.Table.Spec.AlignAttrs
iex> alias IO.ANSI.Table.Spec
iex> spec = Spec.new([:c4, :c1, :c2], align_specs: [right: :c2])
iex> %Spec{align_attrs: align_attrs} = AlignAttrs.derive_and_put(spec)
iex> align_attrs
[nil, nil, :right]