Sha256: 175f0912593775277fede4723d6f797db456484fe972db4557f8abb7fd3f4cbe

Contents?: true

Size: 538 Bytes

Versions: 40

Compression:

Stored size: 538 Bytes

Contents


module YARD::CodeObjects::Cucumber

  class Tag < NamespaceObject

    attr_accessor :value, :owners
    
    def features
      @owners.find_all{|owner| owner.is_a?(Feature) }
    end
    
    def scenarios
      @owners.find_all{|owner| owner.is_a?(Scenario) || owner.is_a?(ScenarioOutline) }
    end
        
    def indirect_scenarios
      @owners.find_all{|owner| owner.is_a?(Feature) }.collect {|feature| feature.scenarios }.flatten
    end
    
    def all_scenarios
      scenarios + indirect_scenarios
    end
    
  end

end

Version data entries

40 entries across 40 versions & 3 rubygems

Version Path
yard-cucumber-2.0.2 lib/yard/code_objects/cucumber/tag.rb
yard-cucumber-2.0.1 lib/yard/code_objects/cucumber/tag.rb
yard-cucumber-2.0.0 lib/yard/code_objects/cucumber/tag.rb
cucumber-in-the-yard-1.7.8 lib/yard/code_objects/cucumber/tag.rb
cucumber-in-the-yard-1.7.7 lib/yard/code_objects/cucumber/tag.rb
cucumber-in-the-yard-1.7.6 lib/yard/code_objects/cucumber/tag.rb
cucumber-in-the-yard-1.7.5 lib/yard/code_objects/cucumber/tag.rb
cucumber-in-the-yard-1.7.4 lib/yard/code_objects/cucumber/tag.rb
cucumber-in-the-yard-1.7.3 lib/yard/code_objects/cucumber/tag.rb
cucumber-in-the-yard-1.7.2 lib/yard/code_objects/cucumber/tag.rb
cucumber-in-the-yard-1.7.1 lib/yard/code_objects/cucumber/tag.rb
cucumber-in-the-yard-1.7.0 lib/yard/code_objects/cucumber/tag.rb
cucumber-in-the-yard-1.6.4 lib/yard/code_objects/cucumber/tag.rb
cucumber-in-the-yard-1.6.3 lib/yard/code_objects/cucumber/tag.rb
cucumber-in-the-yard-1.6.1 lib/yard/code_objects/cucumber/tag.rb
cucumber-in-the-yard-1.6.0 lib/yard/code_objects/cucumber/tag.rb
cucumber-in-the-yard-1.5.4 lib/yard/code_objects/cucumber/tag.rb
cucumber-in-the-yard-1.5.3 lib/yard/code_objects/cucumber/tag.rb
cucumber-in-the-yard-1.5.2 lib/yard/code_objects/cucumber/tag.rb
cucumber-in-the-yard-1.5.1 lib/yard/code_objects/cucumber/tag.rb