Class: Gherkin::AST::Scenario
- Includes:
- Enumerable
- Defined in:
- lib/gherkin/ast.rb
Instance Attribute Summary collapse
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#steps ⇒ Object
readonly
Returns the value of attribute steps.
-
#tags ⇒ Object
readonly
Returns the value of attribute tags.
Attributes inherited from Node
Instance Method Summary collapse
- #each ⇒ Object
-
#initialize(name, steps = [], tags = []) ⇒ Scenario
constructor
A new instance of Scenario.
Methods inherited from Node
Constructor Details
#initialize(name, steps = [], tags = []) ⇒ Scenario
Returns a new instance of Scenario.
52 53 54 55 56 57 58 |
# File 'lib/gherkin/ast.rb', line 52 def initialize(name, steps=[], =[]) @line, @column = name.line_and_column @name = name.to_s @steps = steps @tags = end |
Instance Attribute Details
#name ⇒ Object (readonly)
Returns the value of attribute name.
48 49 50 |
# File 'lib/gherkin/ast.rb', line 48 def name @name end |
#steps ⇒ Object (readonly)
Returns the value of attribute steps.
48 49 50 |
# File 'lib/gherkin/ast.rb', line 48 def steps @steps end |
#tags ⇒ Object (readonly)
Returns the value of attribute tags.
48 49 50 |
# File 'lib/gherkin/ast.rb', line 48 def @tags end |
Instance Method Details
#each ⇒ Object
60 61 62 |
# File 'lib/gherkin/ast.rb', line 60 def each @steps.each end |