Class: Handsoap::XmlMason::TextNode

Inherits:
Object
  • Object
show all
Defined in:
lib/handsoap/xml_mason.rb

Direct Known Subclasses

RawContent

Instance Method Summary collapse

Constructor Details

#initialize(text) ⇒ TextNode

Returns a new instance of TextNode.



73
74
75
# File 'lib/handsoap/xml_mason.rb', line 73

def initialize(text)
  @text = text
end

Instance Method Details

#to_s(indentation = '') ⇒ Object



76
77
78
# File 'lib/handsoap/xml_mason.rb', line 76

def to_s(indentation = '')
  XmlMason.html_escape(@text)
end