GraphViz::Types::LblString

Public Instance Methods

check(data) click to toggle source
# File lib/graphviz/types/lbl_string.rb, line 4
def check(data)
  return data
end
output() click to toggle source
# File lib/graphviz/types/lbl_string.rb, line 8
def output
  html = /^<([<|(^<)*<].*)>$/.match(@data.to_s)
  if html != nil
    "<#{html[1]}>"
  else
    @data.to_s.inspect.gsub( "\\\\", "\\" )
  end
end
Also aliased as: to_gv, to_s, to_ruby
to_gv() click to toggle source
Alias for: output
to_ruby() click to toggle source
Alias for: output
to_s() click to toggle source
Alias for: output

[Validate]

Generated with the Darkfish Rdoc Generator 2.