Method: Simple::SQL::Helpers::Decoder::HStore#unpack
- Defined in:
- lib/simple/sql/helpers/decoder.rb
#unpack(string) ⇒ Object
69 70 71 72 |
# File 'lib/simple/sql/helpers/decoder.rb', line 69 def unpack(string) string = string[1..-2] if string[0] == DOUBLE_QUOTE # remove quotes, if any string.gsub ESCAPED_CHAR, '\1' # unescape, if necessary end |