Class: Wunderbar::CommentNode
Constant Summary
Constants inherited from Node
Instance Attribute Summary
Attributes inherited from Node
#attrs, #children, #name, #node, #parent, #text
Instance Method Summary collapse
-
#initialize(text) ⇒ CommentNode
constructor
A new instance of CommentNode.
- #serialize(options, result, indent) ⇒ Object
Methods inherited from Node
#add_child, #at, #method_missing, parse_css_selector, #preserve_spaces?, #root, #search, #walk
Constructor Details
#initialize(text) ⇒ CommentNode
Returns a new instance of CommentNode.
244 245 246 |
# File 'lib/wunderbar/node.rb', line 244 def initialize(text) @text = text end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class Wunderbar::Node
Instance Method Details
#serialize(options, result, indent) ⇒ Object
248 249 250 251 |
# File 'lib/wunderbar/node.rb', line 248 def serialize(, result, indent) result << "#{indent}<!-- #{@text} -->" result end |