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.



163
164
165
166
# File 'lib/wunderbar/node.rb', line 163

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

Instance Method Details

#serialize(options, result, indent) ⇒ Object



168
169
170
171
# File 'lib/wunderbar/node.rb', line 168

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