Class: CucumberAnalytics::FeatureElement
- Inherits:
-
Object
- Object
- CucumberAnalytics::FeatureElement
- Includes:
- Nested, Raw, Sourceable
- Defined in:
- lib/cucumber_analytics/feature_element.rb
Overview
A class modeling an basic element of a feature.
Direct Known Subclasses
Instance Attribute Summary collapse
-
#description ⇒ Object
Deprecated.
-
#description_text ⇒ Object
The description of the FeatureElement.
-
#name ⇒ Object
The name of the FeatureElement.
Attributes included from Nested
Attributes included from Raw
Attributes included from Sourceable
Instance Method Summary collapse
-
#initialize(parsed_element = nil) ⇒ FeatureElement
constructor
Creates a new FeatureElement object and, if parsed_element is provided, populates the object.
Methods included from Nested
Constructor Details
#initialize(parsed_element = nil) ⇒ FeatureElement
Creates a new FeatureElement object and, if parsed_element is provided, populates the object.
26 27 28 29 30 31 32 |
# File 'lib/cucumber_analytics/feature_element.rb', line 26 def initialize(parsed_element = nil) @name = '' @description = [] @description_text = '' build_feature_element(parsed_element) if parsed_element end |
Instance Attribute Details
#description ⇒ Object
Deprecated
The description of the FeatureElement
18 19 20 |
# File 'lib/cucumber_analytics/feature_element.rb', line 18 def description @description end |
#description_text ⇒ Object
The description of the FeatureElement
21 22 23 |
# File 'lib/cucumber_analytics/feature_element.rb', line 21 def description_text @description_text end |
#name ⇒ Object
The name of the FeatureElement
13 14 15 |
# File 'lib/cucumber_analytics/feature_element.rb', line 13 def name @name end |