class Frozen::Hash

Implicitly frozen Hash.

@note All calls are Hash compatible. @see www.ruby-doc.org/core/classes/Hash.html

Public Class Methods

[](*args) click to toggle source
Calls superclass method
# File lib/frozen-objects/hash.rb, line 17
def self.[](*args)
    result = super(*args)
    result.freeze
end
new(*args, &block) click to toggle source
Calls superclass method
# File lib/frozen-objects/hash.rb, line 22
def initialize(*args, &block)
    super(*args, &block)
    self.freeze
end