# `IO.ANSI.Table.Spec.LeftMargin`
[🔗](https://github.com/RaymondLoranger/io_ansi_table/blob/main/lib/io/ansi/table/spec/left_margin.ex#L1)

Derives the left margin of a table.

# `derive_and_put`

```elixir
@spec derive_and_put(IO.ANSI.Table.Spec.t()) :: IO.ANSI.Table.Spec.t()
```

Derives the left margin of a table.

## Examples

    iex> alias IO.ANSI.Table.Spec.LeftMargin
    iex> alias IO.ANSI.Table.Spec
    iex> spec = Spec.new([:c4, :c1, :c2], margins: [left: 3])
    iex> %Spec{left_margin: left_margin} = LeftMargin.derive_and_put(spec)
    iex> left_margin
    "[3C"

    iex> alias IO.ANSI.Table.Spec.LeftMargin
    iex> alias IO.ANSI.Table.Spec
    iex> spec = Spec.new([:c4, :c1, :c2], margins: [left: 0])
    iex> %Spec{left_margin: left_margin} = LeftMargin.derive_and_put(spec)
    iex> left_margin
    ""

---

*Consult [api-reference.md](api-reference.md) for complete listing*
