class YARD::CodeObjects::Cucumber::Tag
Attributes
owners[RW]
total_scenarios[RW]
value[RW]
Public Instance Methods
all_scenarios()
click to toggle source
# File lib/yard/code_objects/cucumber/tag.rb, line 27 def all_scenarios scenarios + indirect_scenarios end
features()
click to toggle source
# File lib/yard/code_objects/cucumber/tag.rb, line 6 def features @owners.find_all { |owner| owner.is_a?(Feature) } end
indirect_scenarios()
click to toggle source
# File lib/yard/code_objects/cucumber/tag.rb, line 23 def indirect_scenarios @owners.find_all { |owner| owner.is_a?(Feature) }.collect { |feature| feature.scenarios }.flatten end
scenarios()
click to toggle source
# File lib/yard/code_objects/cucumber/tag.rb, line 10 def scenarios all = @owners.find_all do |owner| owner.is_a?(Scenario) || owner.is_a?(ScenarioOutline) || () end @owners.each do |owner| if owner.is_a?(ScenarioOutline::Examples) && !all.include?(owner.scenario) all << owner.scenario end end all end