Class: AllureCucumber::Step
- Inherits:
-
Object
- Object
- AllureCucumber::Step
- Defined in:
- lib/allure_cucumber/models/step.rb
Overview
Cucumber step wrapper class
Instance Method Summary collapse
-
#data_table ⇒ Cucumber::Messages::GherkinDocument::Feature::Step::DataTable
Step data table.
-
#doc_string ⇒ String
Step docstring.
-
#initialize(step_source) ⇒ Step
constructor
A new instance of Step.
-
#name ⇒ String
Step name.
Constructor Details
#initialize(step_source) ⇒ Step
Returns a new instance of Step.
7 8 9 |
# File 'lib/allure_cucumber/models/step.rb', line 7 def initialize(step_source) @step = step_source.step end |
Instance Method Details
#data_table ⇒ Cucumber::Messages::GherkinDocument::Feature::Step::DataTable
Step data table
19 20 21 |
# File 'lib/allure_cucumber/models/step.rb', line 19 def data_table @data_table ||= step.data_table end |
#doc_string ⇒ String
Step docstring
25 26 27 |
# File 'lib/allure_cucumber/models/step.rb', line 25 def doc_string @doc_string ||= step.doc_string end |
#name ⇒ String
Step name
13 14 15 |
# File 'lib/allure_cucumber/models/step.rb', line 13 def name @name ||= "#{step.keyword}#{step.text}" end |