Sha256: 85f34b727dcd97f62013e7b36bb4cba920ed4756c2e07973390d24662cd421a6

Contents?: true

Size: 184 Bytes

Versions: 18

Compression:

Stored size: 184 Bytes

Contents

class Array
  # Convert string keys to symbol keys
  def it_keys_to_sym
    self.each_with_index {|element, i| element.is_a?(Hash) ? self[i] = element.it_keys_to_sym : next }
  end
end

Version data entries

18 entries across 18 versions & 2 rubygems

Version Path
nitro_pay-1.0.10 lib/nitro_pay/array.rb
nitro_pay-1.0.9 lib/nitro_pay/array.rb
nitro_pay-1.0.8 lib/nitro_pay/array.rb
nitro_pay-1.0.7 lib/nitro_pay/array.rb
nitro_pay-1.0.6 lib/nitro_pay/array.rb
nitro_pay-1.0.4 lib/nitro_pay/array.rb
nitro_pay-1.0.3 lib/nitro_pay/array.rb
nitro_pay-1.0.2 lib/nitro_pay/array.rb
nitro_pay-1.0.1 lib/nitro_pay/array.rb
nitro_pay-1.0.0 lib/nitro_pay/array.rb
rents-1.0.8 lib/rents/array.rb
rents-1.0.7 lib/rents/array.rb
rents-1.0.6 lib/rents/array.rb
rents-1.0.5 lib/rents/array.rb
rents-1.0.4 lib/rents/array.rb
rents-1.0.3 lib/rents/array.rb
rents-1.0.2 lib/rents/array.rb
rents-1.0.1 lib/rents/array.rb