class NXML::CDATA
Public Class Methods
new(data)
click to toggle source
# File lib/nxml.rb, line 142 def initialize(data) if not data.index(']]>').nil? raise ArgumentError.new "CDATA should not contain CDATA closing sequence ']]>'" end @data = data end
Public Instance Methods
to_str()
click to toggle source
# File lib/nxml.rb, line 150 def to_str "<![CDATA[#{@data}]]>" end