A registered step definition with pattern and implementation.
Summary
Functions
Build a StepDefinition. A fresh UUID is assigned to :id on each call.
Types
Functions
Build a StepDefinition. A fresh UUID is assigned to :id on each call.
Examples
iex> sd = Cucumberex.StepDefinition.new("I have {int} cukes", fn _, _ -> :ok end, "t.ex:1", :given)
iex> {sd.pattern, sd.keyword, sd.location}
{"I have {int} cukes", :given, "t.ex:1"}
iex> sd = Cucumberex.StepDefinition.new(~r/^x$/, fn _, _ -> :ok end, "t.ex:1")
iex> sd.keyword
:step