esc_string.rb

Path: lib/graphviz/types/esc_string.rb
Last Update: Thu Feb 18 23:34:02 +0000 2010

>> 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\""

[Validate]