Class: YARD::CodeObjects::Cucumber::Tag
Instance Attribute Summary collapse
Instance Method Summary
collapse
#file, #line_number, #location
Instance Attribute Details
#owners ⇒ Object
Returns the value of attribute owners.
7
8
9
|
# File 'lib/yard/code_objects/cucumber/tag.rb', line 7
def owners
@owners
end
|
#value ⇒ Object
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_scenarios ⇒ Object
21
22
23
|
# File 'lib/yard/code_objects/cucumber/tag.rb', line 21
def all_scenarios
scenarios + indirect_scenarios
end
|
#features ⇒ Object
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_scenarios ⇒ Object
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
|
#scenarios ⇒ Object
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
|