Sha256: 2f8e063e3dd2c52eb549d15a2db0ae6cfdf946723b8ada238cb3ecb6d776b280

Contents?: true

Size: 256 Bytes

Versions: 28

Compression:

Stored size: 256 Bytes

Contents

module Tags
  class Tags < Treetop::Runtime::SyntaxNode
    include Enumerable
    
    def include?(tag_name)
      any? {|tag| tag.name == tag_name }
    end
    
    def each
      yield tag
      more.elements.each { |e| yield e.tag }
    end
  end
end

Version data entries

28 entries across 28 versions & 2 rubygems

Version Path
distil-0.14.4 vendor/pdoc/lib/pdoc/parser/tags_nodes.rb
distil-0.14.3 vendor/pdoc/lib/pdoc/parser/tags_nodes.rb
distil-0.14.2 vendor/pdoc/lib/pdoc/parser/tags_nodes.rb
distil-0.14.2.a vendor/pdoc/lib/pdoc/parser/tags_nodes.rb
distil-0.14.1 vendor/pdoc/lib/pdoc/parser/tags_nodes.rb
distil-0.14.1.a vendor/pdoc/lib/pdoc/parser/tags_nodes.rb
distil-0.14.0 vendor/pdoc/lib/pdoc/parser/tags_nodes.rb
distil-0.14.0.i vendor/pdoc/lib/pdoc/parser/tags_nodes.rb
distil-0.14.0.h vendor/pdoc/lib/pdoc/parser/tags_nodes.rb
distil-0.14.0.g vendor/pdoc/lib/pdoc/parser/tags_nodes.rb
distil-0.14.0.d vendor/pdoc/lib/pdoc/parser/tags_nodes.rb
distil-0.14.0.c vendor/pdoc/lib/pdoc/parser/tags_nodes.rb
distil-0.14.0.b vendor/pdoc/lib/pdoc/parser/tags_nodes.rb
distil-0.13.6 vendor/pdoc/lib/pdoc/parser/tags_nodes.rb
distil-0.13.5 vendor/pdoc/lib/pdoc/parser/tags_nodes.rb
distil-0.13.4 vendor/pdoc/lib/pdoc/parser/tags_nodes.rb
distil-0.13.3 vendor/pdoc/lib/pdoc/parser/tags_nodes.rb
distil-0.13.2 vendor/pdoc/lib/pdoc/parser/tags_nodes.rb
distil-0.13.1 vendor/pdoc/lib/pdoc/parser/tags_nodes.rb
distil-0.13.0 vendor/pdoc/lib/pdoc/parser/tags_nodes.rb