Module: Hamster::Immutable::MemoizeMethods

Defined in:
lib/hamster/immutable.rb

Instance Method Summary collapse

Instance Method Details

#immutable!Object


37
38
39
40
# File 'lib/hamster/immutable.rb', line 37

def immutable!
  @__hamster_immutable_memory__ = Object.new
  freeze
end