module CucumberAnalytics::Taggable
A mix-in module containing methods used by elements that can be tagged.
Attributes
tag_elements[RW]
The tag elements belonging to the element
Public Instance Methods
all_tag_elements()
click to toggle source
Returns all of the tag elements which are applicable to the element.
# File lib/cucumber_analytics/taggable.rb, line 32 def all_tag_elements applied_tag_elements + @tag_elements end
applied_tag_elements()
click to toggle source
Returns the tags elements which are indirectly assigned to the element (i.e. they have been inherited from a parent element).
# File lib/cucumber_analytics/taggable.rb, line 22 def applied_tag_elements @parent_element.respond_to?(:all_tag_elements) ? @parent_element.all_tag_elements : [] end
Private Instance Methods
tag_output_string()
click to toggle source
# File lib/cucumber_analytics/taggable.rb, line 49 def tag_output_string tag_elements.collect { |tag| tag.name }.join(' ') end