method
parse_data
v4.0.2 -
Show latest stable
- Class:
ActiveRecord::ConnectionAdapters::PostgreSQLColumn::ArrayParser
parse_data(string, index)private
No documentation available.
# File activerecord/lib/active_record/connection_adapters/postgresql/array_parser.rb, line 19
def parse_data(string, index)
local_index = index
array = []
while(local_index < string.length)
case string[local_index]
when '{'
local_index,array = parse_array_contents(array, string, local_index + 1)
when '}'
return array
end
local_index += 1
end
array
end