Method: Array::Hooked::ArrayInterface#delete_if_without_hooks

Defined in:
lib/array/hooked/array_interface.rb

#delete_if_without_hooks { ... } ⇒ Object

Alias to :delete_if that bypasses hooks.

Yields:

  • Block passed to :delete_if.

Returns:

  • (Object)

    Deleted element.



964
965
966
967
968
969
970
971
972
973
974
# File 'lib/array/hooked/array_interface.rb', line 964

def delete_if_without_hooks( & block )

  @without_hooks = true

  delete_if( & block )
  
  @without_hooks = false

  return self

end