Method: Array::Hooked::ArrayInterface#reverse_without_hooks!

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

#reverse_without_hooks!Object

Alias to :reverse that bypasses hooks.

Returns:

  • (Object)

    Self.



1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
# File 'lib/array/hooked/array_interface.rb', line 1075

def reverse_without_hooks!

  @without_hooks = true

  reverse!
  
  @without_hooks = false

  return self

end