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