In: |
lib/amrita/tag.rb
|
Parent: | Object |
this class is used only by compiler.rb but it has tag information so moved to here(tag.rb)
attrs | [R] | |
name | [R] |
# File lib/amrita/tag.rb, line 145 def initialize(name="", attrs=[]) @name = name.downcase @attrs = attrs end
# File lib/amrita/tag.rb, line 158 def ==(t) t.kind_of?(Tag) and name == t.name and attrs == t.attrs end
# File lib/amrita/tag.rb, line 193 def can_omit_endtag? HtmlTagInfo::CAN_OMIT_ENDTAG.include?(@name) end