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.
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(, result, indent) result << "<!#{@declare} #{@name.to_s}>" result end |