Sha256: 49b35121cd24213a4762f8962eec9f85a94defd4f151ed2c2655cee4769817ef

Contents?: true

Size: 453 Bytes

Versions: 3

Compression:

Stored size: 453 Bytes

Contents

class Array
  def recursively_symbolize_keys!
    self.each do |item|
      if item.is_a? Hash
        item.recursively_symbolize_keys!
      elsif item.is_a? Array
        item.recursively_symbolize_keys!
      end
    end
  end

  def recursively_stringify_keys!
    self.each do |item|
      if item.is_a? Hash
        item.recursively_stringify_keys!
      elsif item.is_a? Array
        item.recursively_stringify_keys!
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
repo_manager-0.7.3 lib/repo_manager/core/array.rb
repo_manager-0.7.2 lib/repo_manager/core/array.rb
repo_manager-0.7.1 lib/repo_manager/core/array.rb