Class: Array
- Inherits:
-
Object
- Object
- Array
- Defined in:
- lib/nitro_pay/array.rb
Instance Method Summary collapse
-
#it_keys_to_sym ⇒ Object
Convert string keys to symbol keys.
Instance Method Details
#it_keys_to_sym ⇒ Object
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 |