"DTD/xhtml1-strict.dtd">
This class provide information for formatting.
# File lib/amrita/tag.rb, line 111
def initialize
@dict = Hash.new(DefaultTagInfo)
end
# File lib/amrita/tag.rb, line 115
def freeze
@dict.each do |k,v|
k.freeze
v.freeze
end
self
end
# File lib/amrita/tag.rb, line 123
def get_tag_info(tagname)
case tagname
when Symbol
when String
tagname = tagname.downcase.intern
else
tagname = tagname.to_s.downcase.intern
end
if @dict.has_key?(tagname)
@dict[tagname]
else
@dict[tagname] = TagInfoItem.new(tagname)
end
end
|