Method: Hash::Hooked::HashInterface#replace_without_hooks

Defined in:
lib/hash/hooked/hash_interface.rb

#replace_without_hooks(other_hash) ⇒ Object

Alias to #replace that bypasses hooks.

Parameters:

  • other_hash (Array)

    Other hash to replace self with.

Returns:

  • (Object)

    Self.



628
629
630
631
632
633
634
635
636
# File 'lib/hash/hooked/hash_interface.rb', line 628

def replace_without_hooks( other_hash )
  
  @without_hooks = true
  
  replace( other_hash )
  
  @without_hooks = false
  
end