Class: CucumberAnalytics::FeatureElement

Inherits:
Object
  • Object
show all
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

Example, Feature, TestElement

Instance Attribute Summary collapse

Attributes included from Nested

#parent_element

Attributes included from Raw

#raw_element

Attributes included from Sourceable

#source_line

Instance Method Summary collapse

Methods included from Nested

#get_ancestor

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

#descriptionObject

Deprecated

The description of the FeatureElement



18
19
20
# File 'lib/cucumber_analytics/feature_element.rb', line 18

def description
  @description
end

#description_textObject

The description of the FeatureElement



21
22
23
# File 'lib/cucumber_analytics/feature_element.rb', line 21

def description_text
  @description_text
end

#nameObject

The name of the FeatureElement



13
14
15
# File 'lib/cucumber_analytics/feature_element.rb', line 13

def name
  @name
end