module Wardrobe::Plugins::Immutable::InstanceMethods

Public Class Methods

new(**hash) click to toggle source
Calls superclass method
# File lib/wardrobe/plugins/immutable.rb, line 146
def initialize(**hash)
  super
  _data.deep_freeze if instance_variable_defined?(:@_data)
  freeze
end

Public Instance Methods

_attribute_init(atr, hash, name) click to toggle source
Calls superclass method
# File lib/wardrobe/plugins/immutable.rb, line 156
def _attribute_init(atr, hash, name)
  super
  send(atr.name).deep_freeze
end
mutate(**args, &blk) click to toggle source
Calls superclass method
# File lib/wardrobe/plugins/immutable.rb, line 152
def mutate(**args, &blk)
  super
end