Class: Array

Inherits:
Object
  • Object
show all
Defined in:
lib/nitro_pay/array.rb

Instance Method Summary collapse

Instance Method Details

#it_keys_to_symObject

Convert string keys to symbol keys



3
4
5
# File 'lib/nitro_pay/array.rb', line 3

def it_keys_to_sym
  self.each_with_index {|element, i| element.is_a?(Hash) ? self[i] = element.it_keys_to_sym : next }
end