Class: Moxml::Adapter::CustomizedLibxml::Text

Inherits:
Node
  • Object
show all
Defined in:
lib/moxml/adapter/customized_libxml/text.rb

Overview

Wrapper for LibXML text nodes

Instance Attribute Summary

Attributes inherited from Node

#native

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

#textObject



12
13
14
# File 'lib/moxml/adapter/customized_libxml/text.rb', line 12

def text
  @native.content
end

#to_sObject



8
9
10
# File 'lib/moxml/adapter/customized_libxml/text.rb', line 8

def to_s
  @native.content
end

#to_xmlObject



17
18
19
# File 'lib/moxml/adapter/customized_libxml/text.rb', line 17

def to_xml
  @native.to_s
end