Sha256: a11f336b5f80fbdd0af9dccef445c75b88c995656403cca729d5525226d53651

Contents?: true

Size: 236 Bytes

Versions: 59

Compression:

Stored size: 236 Bytes

Contents

class HashWrapper < Hash
  
  def init(hash, key)
    @hash = hash
    @key = key
    @hash[@key] ||= Hash.new
  end
  
  def [](subkey)
    @hash[@key][subkey]
  end
  
  def []=(subkey, obj)
    @hash[@key][subkey] = obj
  end
  
end

Version data entries

59 entries across 59 versions & 1 rubygems

Version Path
imagine_cms-4.2.4 lib/hash_wrapper.rb
imagine_cms-4.1.4 lib/hash_wrapper.rb
imagine_cms-4.2.3 lib/hash_wrapper.rb
imagine_cms-4.2.2 lib/hash_wrapper.rb
imagine_cms-4.2.1 lib/hash_wrapper.rb
imagine_cms-4.2.0 lib/hash_wrapper.rb
imagine_cms-4.1.3 lib/hash_wrapper.rb
imagine_cms-4.1.2 lib/hash_wrapper.rb
imagine_cms-4.1.1 lib/hash_wrapper.rb
imagine_cms-4.1.0 lib/hash_wrapper.rb
imagine_cms-4.0.1 lib/hash_wrapper.rb
imagine_cms-4.0.0 lib/hash_wrapper.rb
imagine_cms-3.0.33 lib/hash_wrapper.rb
imagine_cms-3.0.32 lib/hash_wrapper.rb
imagine_cms-3.0.31 lib/hash_wrapper.rb
imagine_cms-3.0.30 lib/hash_wrapper.rb
imagine_cms-3.0.29 lib/hash_wrapper.rb
imagine_cms-3.0.28 lib/hash_wrapper.rb
imagine_cms-3.0.27 lib/hash_wrapper.rb
imagine_cms-3.0.26 lib/hash_wrapper.rb