search for: get_typed_valu

Displaying 1 result from an estimated 1 matches for "get_typed_valu".

Did you mean: get_typed_value
2007 Dec 03
3
Request param type of array
...ty? for key, value in params if key.blank? params.delete key elsif !key.include?(''['') # much faster to test for the most common case first (GET) # and avoid the call to build_deep_hash parser.result[key] = get_typed_value(value[0]) params.delete key elsif value.is_a?(Array) parser.parse(key, get_typed_value(value.shift)) params.delete key if value.empty? else raise TypeError, "Expected array, found #{value.inspect}" end...