# `Gherkin.Rule`
[🔗](https://github.com/huddlz-hq/cucumber/blob/main/lib/gherkin.ex#L37)

Represents a Gherkin Rule section.

A Rule groups related scenarios under a feature to express a business rule.
It can have its own description, tags, and Background; rule-background steps
run after the feature-background steps for each scenario in the rule, and
rule tags are inherited by those scenarios.

# `t`

```elixir
@type t() :: %Gherkin.Rule{
  background: Gherkin.Background.t() | nil,
  description: String.t(),
  line: non_neg_integer() | nil,
  name: String.t(),
  scenarios: [Gherkin.Scenario.t() | Gherkin.ScenarioOutline.t()],
  tag_lines: [non_neg_integer()],
  tags: [String.t()]
}
```

---

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