Raises:
96 97 98 99 100
# File 'lib/eim_xml/xhtml.rb', line 96 def self.new(level, attr={}, &proc) raise ArgumentError unless 1<=level && level<=6 klass = EimXML::XHTML.const_get("H#{level}") klass.new(attr, &proc) end