Method: Kwaff::DocType#initialize

Defined in:
lib/kwaff/doctype.rb

#initialize(root_tag, public_id, system_id, desc = nil) ⇒ DocType

ex.

 root_tag  = 'html'
 public_id = '-//W3C//DTD XHTML 1.0 Transitional//EN'
 system_id = 'http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd'
 doctype = DocType.new(root_tag, public_id, system_id)
or
 str = <<END
 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
           "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"
 END
 doctype = DocType.new()
 doctype.doctype = str


35
36
37
38
39
40
41
42
# File 'lib/kwaff/doctype.rb', line 35

def initialize(root_tag, public_id, system_id, desc=nil)
   @root_tag  = root_tag
   @public_id = public_id
   @system_id = system_id
   @desc      = desc
   @_str = nil
   @@instances << self
end