class Rexle::CData
Public Class Methods
new(val='')
click to toggle source
# File lib/rexle.rb, line 1343 def initialize(val='') @value = val end
Public Instance Methods
clone()
click to toggle source
# File lib/rexle.rb, line 1347 def clone() CData.new(@value) end
inspect()
click to toggle source
# File lib/rexle.rb, line 1351 def inspect() @value.inspect end
print()
click to toggle source
# File lib/rexle.rb, line 1355 def print() "<![CDATA[%s]]>" % @value end
to_s()
click to toggle source
# File lib/rexle.rb, line 1359 def to_s() @value end
unescape()
click to toggle source
# File lib/rexle.rb, line 1363 def unescape() s = @value.clone %w(< < > > & & ' ').each_slice(2){|x| s.gsub!(*x)} s end