Sha256: b5acf7971bf19caf5849f7a2c89293b5fb3e407a1e56285a27b3039f71e94aaa
Contents?: true
Size: 543 Bytes
Versions: 15
Compression:
Stored size: 543 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 EscString < Common def check(data) return data end def output return @data.to_s.inspect.gsub( "\\\\", "\\" ) end alias :to_gv :output alias :to_s :output end end end
Version data entries
15 entries across 15 versions & 1 rubygems