Class: Moxml::Adapter::CustomizedLibxml::Text
- Defined in:
- lib/moxml/adapter/customized_libxml/text.rb
Overview
Wrapper for LibXML text nodes
Instance Attribute Summary
Attributes inherited from Node
Instance Method Summary collapse
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
#text ⇒ Object
12 13 14 |
# File 'lib/moxml/adapter/customized_libxml/text.rb', line 12 def text @native.content end |
#to_s ⇒ Object
8 9 10 |
# File 'lib/moxml/adapter/customized_libxml/text.rb', line 8 def to_s @native.content end |
#to_xml ⇒ Object
17 18 19 |
# File 'lib/moxml/adapter/customized_libxml/text.rb', line 17 def to_xml @native.to_s end |