Class: Gherkin::AST::Feature
- Includes:
- Enumerable
- Defined in:
- lib/gherkin/ast.rb
Instance Attribute Summary collapse
-
#background ⇒ Object
Returns the value of attribute background.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#scenarios ⇒ Object
Returns the value of attribute scenarios.
-
#tags ⇒ Object
Returns the value of attribute tags.
Attributes inherited from Node
Instance Method Summary collapse
- #each ⇒ Object
-
#initialize(name, scenarios = [], tags = [], background = nil) ⇒ Feature
constructor
A new instance of Feature.
Methods inherited from Node
Constructor Details
#initialize(name, scenarios = [], tags = [], background = nil) ⇒ Feature
Returns a new instance of Feature.
22 23 24 25 26 27 |
# File 'lib/gherkin/ast.rb', line 22 def initialize(name, scenarios=[], =[], background=nil) @name = name @background = background @tags = @scenarios = scenarios end |
Instance Attribute Details
#background ⇒ Object
Returns the value of attribute background.
17 18 19 |
# File 'lib/gherkin/ast.rb', line 17 def background @background end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
17 18 19 |
# File 'lib/gherkin/ast.rb', line 17 def name @name end |
#scenarios ⇒ Object
Returns the value of attribute scenarios.
17 18 19 |
# File 'lib/gherkin/ast.rb', line 17 def scenarios @scenarios end |
#tags ⇒ Object
Returns the value of attribute tags.
17 18 19 |
# File 'lib/gherkin/ast.rb', line 17 def @tags end |
Instance Method Details
#each ⇒ Object
29 30 31 |
# File 'lib/gherkin/ast.rb', line 29 def each @scenarios.each end |