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.



148
149
150
151
# File 'lib/wunderbar/node.rb', line 148

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

Instance Method Details

#serialize(options, result, indent) ⇒ Object



153
154
155
156
# File 'lib/wunderbar/node.rb', line 153

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