class XmlText
Public Class Methods
new(text)
click to toggle source
# File lib/upnp_xml.rb, line 35 def initialize(text) @text = "#{text}" @text = escape(@text) end
Public Instance Methods
escape(text)
click to toggle source
# File lib/upnp_xml.rb, line 40 def escape(text) text.gsub('&', '&').gsub('>', '>').gsub('<', '<') end
to_s()
click to toggle source
# File lib/upnp_xml.rb, line 44 def to_s @text end