Class: Moxml::Adapter::CustomizedLibxml::Comment
- Defined in:
- lib/moxml/adapter/customized_libxml/comment.rb
Overview
Wrapper for LibXML comment nodes
Instance Attribute Summary
Attributes inherited from Node
Instance Method Summary collapse
-
#to_xml ⇒ Object
libxml stores comment payload verbatim.
Methods inherited from Node
#==, #document, #document_present?, #hash, #initialize, #replace_native!
Constructor Details
This class inherits a constructor from Moxml::Adapter::CustomizedLibxml::Node
Instance Method Details
#to_xml ⇒ Object
libxml stores comment payload verbatim.
9 10 11 |
# File 'lib/moxml/adapter/customized_libxml/comment.rb', line 9 def to_xml "<!--#{@native.content}-->" end |