Sha256: 1a1fd819655898156278db0061f2addc43ae96e2d220e88681332a4f00d0342b
Contents?: true
Size: 587 Bytes
Versions: 7
Compression:
Stored size: 587 Bytes
Contents
# >> x = "hello\n\t\\l\"world\"" # => "hello\n\t\\l\"world\"" # >> puts x.inspect.gsub( "\\\\", "\\" ) # "hello\n\t\l\"world\"" # # OR # # >> x = 'hello\n\t\l"world"' # => "hello\\n\\t\\l\"world\"" # >> puts x.inspect.gsub( "\\\\", "\\" ) # "hello\n\t\l\"world\"" class GraphViz class Types class ArrowType < Common def check(data) return data end def output return @data.to_s.inspect.gsub( "\\\\", "\\" ) end alias :to_gv :output alias :to_s :output def to_ruby @data end end end end
Version data entries
7 entries across 7 versions & 1 rubygems