Class: Wunderbar::DocTypeNode
- Inherits:
-
Object
- Object
- Wunderbar::DocTypeNode
- Defined in:
- lib/wunderbar/node.rb
Instance Method Summary collapse
-
#initialize(*args) ⇒ DocTypeNode
constructor
A new instance of DocTypeNode.
- #serialize(options, result, indent) ⇒ Object
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(, result, indent) result << "<!#{@declare} #{@name.to_s}>" result end |