# `Machete.TruthyMatcher`
[🔗](https://github.com/mtrudel/machete/blob/main/lib/machete/matchers/truthy_matcher.ex#L1)

Defines a matcher that matches truthy values

# `opts`

```elixir
@type opts() :: []
```

Describes the arguments that can be passed to this matcher

# `t`

```elixir
@opaque t()
```

Describes an instance of this matcher

# `truthy`

```elixir
@spec truthy(opts()) :: t()
```

Matches against [truthy values](https://hexdocs.pm/elixir/1.12/Kernel.html#module-truthy-and-falsy-values).

Takes no arguments

Examples:
    
    iex> assert true ~> truthy()
    true

    iex> assert 123 ~> truthy()
    true

    iex> refute false ~> truthy()
    false

    iex> refute nil ~> truthy()
    false

---

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