Sha256: eefa32865bdbb331105b7aa7ec164f922a0c95a82d0fcf5fe083764210796cf2

Contents?: true

Size: 613 Bytes

Versions: 25

Compression:

Stored size: 613 Bytes

Contents

module YARD
  module Tags
    class RefTagList
      attr_accessor :owner, :tag_name, :name
      
      def initialize(tag_name, owner, name = nil)
        @owner = CodeObjects::Proxy === owner ? owner : P(owner)
        @tag_name = tag_name.to_s
        @name = name
      end
      
      def tags
        if owner.is_a?(CodeObjects::Base)
          o = owner.tags(tag_name)
          o = o.select {|t| t.name.to_s == name.to_s } if name
          o.each do |t|
            t.extend(RefTag)
            t.owner = owner
          end
          o
        else
          []
        end
      end
    end
  end
end

Version data entries

25 entries across 25 versions & 1 rubygems

Version Path
yard-0.6.8 lib/yard/tags/ref_tag_list.rb
yard-0.6.7 lib/yard/tags/ref_tag_list.rb
yard-0.6.6 lib/yard/tags/ref_tag_list.rb
yard-0.6.5 lib/yard/tags/ref_tag_list.rb
yard-0.6.4 lib/yard/tags/ref_tag_list.rb
yard-0.6.3 lib/yard/tags/ref_tag_list.rb
yard-0.6.2 lib/yard/tags/ref_tag_list.rb
yard-0.6.1 lib/yard/tags/ref_tag_list.rb
yard-0.6.0 lib/yard/tags/ref_tag_list.rb
yard-0.5.8 lib/yard/tags/ref_tag_list.rb
yard-0.5.7 lib/yard/tags/ref_tag_list.rb
yard-0.5.6 lib/yard/tags/ref_tag_list.rb
yard-0.5.5 lib/yard/tags/ref_tag_list.rb
yard-0.5.4 lib/yard/tags/ref_tag_list.rb
yard-0.5.3 lib/yard/tags/ref_tag_list.rb
yard-0.5.2 lib/yard/tags/ref_tag_list.rb
yard-0.5.1p1 lib/yard/tags/ref_tag_list.rb
yard-0.5.1 lib/yard/tags/ref_tag_list.rb
yard-0.5.0 lib/yard/tags/ref_tag_list.rb
yard-0.4.0 lib/yard/tags/ref_tag_list.rb