Method: XRay::HTML::DTDElement#initialize

Defined in:
lib/html/struct.rb

#initialize(type, pre = "DOCTYPE", pos = nil) ⇒ DTDElement

Returns a new instance of DTDElement.



239
240
241
242
# File 'lib/html/struct.rb', line 239

def initialize(type, pre="DOCTYPE", pos=nil)
  @type, @pre = type, pre
  @position   = pos || Position.new(0,0,0)
end