Module: EimXML::XHTML::Hn

Defined in:
lib/eim_xml/xhtml.rb

Class Method Summary collapse

Class Method Details

.new(level, attr = {}, &proc) ⇒ Object

Raises:

  • (ArgumentError)


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