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