Class: LucidTDL::AST::Feature
- Includes:
- Enumerable
- Defined in:
- lib/lucid-tdl/ast.rb
Overview
class Node
Direct Known Subclasses
Instance Attribute Summary collapse
-
#background ⇒ Object
Returns the value of attribute background.
-
#description ⇒ Object
Returns the value of attribute description.
-
#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.
24 25 26 27 28 29 |
# File 'lib/lucid-tdl/ast.rb', line 24 def initialize(name, scenarios=[], =[], background=nil) @name = name @background = background @scenarios = scenarios @tags = end |
Instance Attribute Details
#background ⇒ Object
Returns the value of attribute background.
22 23 24 |
# File 'lib/lucid-tdl/ast.rb', line 22 def background @background end |
#description ⇒ Object
Returns the value of attribute description.
22 23 24 |
# File 'lib/lucid-tdl/ast.rb', line 22 def description @description end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
21 22 23 |
# File 'lib/lucid-tdl/ast.rb', line 21 def name @name end |
#scenarios ⇒ Object
Returns the value of attribute scenarios.
22 23 24 |
# File 'lib/lucid-tdl/ast.rb', line 22 def scenarios @scenarios end |
#tags ⇒ Object
Returns the value of attribute tags.
22 23 24 |
# File 'lib/lucid-tdl/ast.rb', line 22 def @tags end |
Instance Method Details
#each ⇒ Object
31 32 33 |
# File 'lib/lucid-tdl/ast.rb', line 31 def each @scenarios.each end |