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-3.1.0 lib/yard/code_objects/cucumber/tag.rb
yard-cucumber-3.0.0 lib/yard/code_objects/cucumber/tag.rb
yard-cucumber2-2.3.4 lib/yard/code_objects/cucumber/tag.rb
yard-cucumber2-2.3.3 lib/yard/code_objects/cucumber/tag.rb
yard-cucumber-2.3.2 lib/yard/code_objects/cucumber/tag.rb
yard-cucumber-2.3.1 lib/yard/code_objects/cucumber/tag.rb
yard-cucumber-2.3.0 lib/yard/code_objects/cucumber/tag.rb
yard-cucumber-2.2.3 lib/yard/code_objects/cucumber/tag.rb
yard-cucumber-2.2.2 lib/yard/code_objects/cucumber/tag.rb
yard-cucumber-2.2.1 lib/yard/code_objects/cucumber/tag.rb
yard-cucumber-2.2.0 lib/yard/code_objects/cucumber/tag.rb
yard-cucumber-2.1.7 lib/yard/code_objects/cucumber/tag.rb
yard-cucumber-2.1.6 lib/yard/code_objects/cucumber/tag.rb
yard-cucumber-2.1.5 lib/yard/code_objects/cucumber/tag.rb
yard-cucumber-2.1.4 lib/yard/code_objects/cucumber/tag.rb
yard-cucumber-2.1.3 lib/yard/code_objects/cucumber/tag.rb
yard-cucumber-2.1.2 lib/yard/code_objects/cucumber/tag.rb
yard-cucumber-2.1.1 lib/yard/code_objects/cucumber/tag.rb
yard-cucumber-2.1.0 lib/yard/code_objects/cucumber/tag.rb
yard-cucumber-2.0.3 lib/yard/code_objects/cucumber/tag.rb