Class: YARD::CodeObjects::Cucumber::Tag

Inherits:
NamespaceObject show all
Defined in:
lib/yard/code_objects/cucumber/tag.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from LocationHelper

#file, #line_number, #location

Instance Attribute Details

#ownersObject

Returns the value of attribute owners.



7
8
9
# File 'lib/yard/code_objects/cucumber/tag.rb', line 7

def owners
  @owners
end

#valueObject

Returns the value of attribute value.



7
8
9
# File 'lib/yard/code_objects/cucumber/tag.rb', line 7

def value
  @value
end

Instance Method Details

#all_scenariosObject



21
22
23
# File 'lib/yard/code_objects/cucumber/tag.rb', line 21

def all_scenarios
  scenarios + indirect_scenarios
end

#featuresObject



9
10
11
# File 'lib/yard/code_objects/cucumber/tag.rb', line 9

def features
  @owners.find_all{|owner| owner.is_a?(Feature) }
end

#indirect_scenariosObject



17
18
19
# File 'lib/yard/code_objects/cucumber/tag.rb', line 17

def indirect_scenarios
  @owners.find_all{|owner| owner.is_a?(Feature) }.collect {|feature| feature.scenarios }.flatten
end

#scenariosObject



13
14
15
# File 'lib/yard/code_objects/cucumber/tag.rb', line 13

def scenarios
  @owners.find_all{|owner| owner.is_a?(Scenario) || owner.is_a?(ScenarioOutline) }
end