# File lib/html/tags.rb, line 105 def Tag.add_tag(name, is_block, is_inline, is_empty, can_omit) @table[ name.upcase ] = @table[ name.downcase ] = \ if is_empty EmptyTag.new(name, true) elsif is_block if is_inline BlockOrInlineTag.new(name, can_omit) else BlockTag.new(name, can_omit) end else InlineTag.new(name, can_omit) end end