Method: Array::Hooked::ArrayInterface#sort_without_hooks!

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

#sort_without_hooks! { ... } ⇒ Object

Alias to :sort that bypasses hooks.

Yields:

  • Block passed to :sort!.

Returns:

  • (Object)

    Self.



1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
# File 'lib/array/hooked/array_interface.rb', line 1173

def sort_without_hooks!( & block )
  
  @without_hooks = true

  sort!
  
  @without_hooks = false
  
  return self
  
end