Sha256: 4edb12a99772fe858869ba3d1b60e51c5715586243d30f3078a2e444e72b6dae
Contents?: true
Size: 462 Bytes
Versions: 11
Compression:
Stored size: 462 Bytes
Contents
class Fancy class AST class StringLiteral < Rubinius::AST::StringLiteral def initialize(line, str) super(line, unescape_chars(str)) end def unescape_chars(str) str.gsub("\\r", "\r").gsub("\\t", "\t").gsub("\\n", "\n").gsub("\\v", "\v").gsub("\\b", "\b"). gsub("\\f", "\f").gsub("\\a", "\a").gsub("\\\\", "\\").gsub("\\?", "\?").gsub("\\'", "\'").gsub('\\"', '\"').gsub("\\\"", "\"") end end end end
Version data entries
11 entries across 11 versions & 1 rubygems