Class | Amrita::Tag |
In: |
lib/amrita/tag.rb
|
Parent: | Object |
but it has tag information so moved to here(tag.rb)
attrs | [R] | |
name | [R] |
# File lib/amrita/tag.rb, line 191 def initialize(name, attrs=[]) @name = name.downcase @attrs = attrs end
# File lib/amrita/tag.rb, line 204 def ==(t) t.kind_of?(Tag) and name == t.name and attrs == t.attrs end
# File lib/amrita/tag.rb, line 236 def can_omit_endtag? HtmlTagInfo::CAN_OMIT_ENDTAG.include?(@name) end
# File lib/amrita/tag.rb, line 221 def generate_element(parser) a = attrs.collect { |attr| Attr.new(attr[0], attr[1]) } if empty_tag? Element.new(name, *a) else Element.new(name, *a) do parser.parse1(self) end end end