vendor/bundle/ruby/1.8/gems/inifile-1.1.0/lib/inifile.rb
def unescape( value )
    return value unless @escape

    value = value.to_s
    value.gsub!(%r/\\[0nrt\\]/) { |char|
      case char
      when '\0';   "\0"
      when '\n';   "\n"
      when '\r';   "\r"
      when '\t';   "\t"
      when '\\\\'; "\\"
      end
    }
    value
  end
# Unescape special characters found in the value string. This will convert
# escaped null, tab, carriage return, newline, and backslash into their
# literal equivalents.
#
Unescape special characters found in the value string. This will convert
escaped null, tab, carriage return, newline, and backslash into their
literal equivalents.
Unescape special characters found in the value string . This will convert escaped null tab carriage return newline and backslash into their literal equivalents .
def unescape( value )
    return value unless @escape
    value = value.to_s
    value.gsub!(%r/\\[0nrt\\]/) { |char|
      case char
      when '\0';   "\0"
      when '\n';   "\n"
      when '\r';   "\r"
      when '\t';   "\t"
      when '\\\\'; "\\"
      end
    }
    value
  end
def unescape ( value ) return value unless @escape value = value . to_s value . gsub! ( %r/ \\ [0nrt \\ ] / ) { | char | case char when '\0' ; "\0" when '\n' ; "\n" when '\r' ; "\r" when '\t' ; "\t" when '\\\\' ; "\\" end } value end
Unescape special characters found in the value string.
Unescape special characters found in the value string .
value