Sha256: ccd99431a4debd7e686a279191879ad329381facc974fcc0615bcdd050b2c00d

Contents?: true

Size: 512 Bytes

Versions: 5

Compression:

Stored size: 512 Bytes

Contents

module YARD::CodeObjects::Lucid
  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

5 entries across 5 versions & 1 rubygems

Version Path
yard-lucid-0.5.0 lib/yard/code_objects/lucid/tag.rb
yard-lucid-0.4.0 lib/yard/code_objects/lucid/tag.rb
yard-lucid-0.3.0 lib/yard/code_objects/lucid/tag.rb
yard-lucid-0.2.0 lib/yard/code_objects/lucid/tag.rb
yard-lucid-0.1.0 lib/yard/code_objects/lucid/tag.rb