Sha256: 4c8eac59cb2e060cff6e40ccab5c41330979506a8aa725d448046bc5ce060212

Contents?: true

Size: 247 Bytes

Versions: 2

Compression:

Stored size: 247 Bytes

Contents

class Hash
  def recursive_with_indifferent_access
    hash = with_indifferent_access
    hash.each do |key, value|
      if value.is_a?(Hash)
        hash[key] = value.recursive_with_indifferent_access
      end
    end
    return hash
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
zencoder-2.1.13 lib/zencoder/extensions.rb
zencoder-2.1.12 lib/zencoder/extensions.rb