Class: Wunderbar::DocTypeNode

Inherits:
Object
  • Object
show all
Defined in:
lib/wunderbar/node.rb

Instance Method Summary collapse

Constructor Details

#initialize(*args) ⇒ DocTypeNode

Returns a new instance of DocTypeNode.



137
138
139
140
# File 'lib/wunderbar/node.rb', line 137

def initialize(*args)
  @declare = args.shift
  @name = args.shift
end

Instance Method Details

#serialize(options, result, indent) ⇒ Object



142
143
144
145
# File 'lib/wunderbar/node.rb', line 142

def serialize(options, result, indent)
  result << "<!#{@declare} #{@name.to_s}>"
  result
end