# File lib/graphviz/types/lbl_string.rb, line 6 def check(data) return data end
# File lib/graphviz/types/lbl_string.rb, line 10 def output html = /^<(.*)>$/.match(@data.to_s) if html != nil xml = "<gv>" + html[1].to_s + "</gv>" begin doc = REXML::Document.new(xml) unless doc.root.text == html[1].to_s "<#{html[1]}>" else @data.to_s.inspect.gsub( "\\\\", "\\" ) end rescue REXML::ParseException => _ @data.to_s.inspect.gsub( "\\\\", "\\" ) end else @data.to_s.inspect.gsub( "\\\\", "\\" ) end end
Generated with the Darkfish Rdoc Generator 2.