Sha256: b80414d42ff3455f62fe32ef3160661eb1c2b125b74f7ac8f7bf959ffd232ce5

Contents?: true

Size: 352 Bytes

Versions: 11

Compression:

Stored size: 352 Bytes

Contents

class Fancy
  class AST
    class StringHelper
      def self.unescape_string(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

Version Path
fancy-0.10.0 boot/fancy_ext/string_helper.rb
fancy-0.9.0 boot/fancy_ext/string_helper.rb
fancy-0.8.0 boot/fancy_ext/string_helper.rb
fancy-0.7.0 boot/fancy_ext/string_helper.rb
fancy-0.6.0 boot/fancy_ext/string_helper.rb
fancy-0.5.0 boot/fancy_ext/string_helper.rb
fancy-0.4.0 boot/fancy_ext/string_helper.rb
fancy-0.3.3 boot/fancy_ext/string_helper.rb
fancy-0.3.2 boot/fancy_ext/string_helper.rb
fancy-0.3.1 boot/fancy_ext/string_helper.rb
fancy-0.3.0 boot/fancy_ext/string_helper.rb