Class: Cucumber::CucumberExpressions::Group
- Inherits:
-
Object
- Object
- Cucumber::CucumberExpressions::Group
- Defined in:
- lib/cucumber/cucumber_expressions/group.rb
Instance Attribute Summary collapse
-
#children ⇒ Object
readonly
Returns the value of attribute children.
-
#end ⇒ Object
readonly
Returns the value of attribute end.
-
#start ⇒ Object
readonly
Returns the value of attribute start.
-
#value ⇒ Object
readonly
Returns the value of attribute value.
Instance Method Summary collapse
-
#initialize(value, start, _end, children) ⇒ Group
constructor
A new instance of Group.
- #values ⇒ Object
Constructor Details
#initialize(value, start, _end, children) ⇒ Group
Returns a new instance of Group.
8 9 10 11 12 13 |
# File 'lib/cucumber/cucumber_expressions/group.rb', line 8 def initialize(value, start, _end, children) @value = value @start = start @end = _end @children = children end |
Instance Attribute Details
#children ⇒ Object (readonly)
Returns the value of attribute children.
6 7 8 |
# File 'lib/cucumber/cucumber_expressions/group.rb', line 6 def children @children end |
#end ⇒ Object (readonly)
Returns the value of attribute end.
6 7 8 |
# File 'lib/cucumber/cucumber_expressions/group.rb', line 6 def end @end end |
#start ⇒ Object (readonly)
Returns the value of attribute start.
6 7 8 |
# File 'lib/cucumber/cucumber_expressions/group.rb', line 6 def start @start end |
#value ⇒ Object (readonly)
Returns the value of attribute value.
6 7 8 |
# File 'lib/cucumber/cucumber_expressions/group.rb', line 6 def value @value end |
Instance Method Details
#values ⇒ Object
15 16 17 |
# File 'lib/cucumber/cucumber_expressions/group.rb', line 15 def values (children.empty? ? [self] : children).map(&:value) end |