Class: Handsoap::XmlMason::TextNode
- Inherits:
-
Object
- Object
- Handsoap::XmlMason::TextNode
- Defined in:
- lib/handsoap/xml_mason.rb
Direct Known Subclasses
Instance Method Summary collapse
-
#initialize(text) ⇒ TextNode
constructor
A new instance of TextNode.
- #to_s(indentation = '') ⇒ Object
Constructor Details
#initialize(text) ⇒ TextNode
Returns a new instance of TextNode.
89 90 91 |
# File 'lib/handsoap/xml_mason.rb', line 89 def initialize(text) @text = text end |
Instance Method Details
#to_s(indentation = '') ⇒ Object
92 93 94 |
# File 'lib/handsoap/xml_mason.rb', line 92 def to_s(indentation = '') XmlMason.xml_escape(@text) end |