Module: Unparser::Adamantium::InstanceMethods

Defined in:
lib/unparser/adamantium.rb

Instance Method Summary collapse

Instance Method Details

#dupself

A noop #dup for immutable objects

Returns:

  • (self)


14
15
16
# File 'lib/unparser/adamantium.rb', line 14

def dup
  self
end

#freezeObject

Freeze the object

mutant:disable

Returns:

  • (Object)


25
26
27
28
# File 'lib/unparser/adamantium.rb', line 25

def freeze
  memoized_method_cache
  super
end