Method: Array::Hooked::ArrayInterface#collect_without_hooks!

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

#collect_without_hooks! { ... } ⇒ Object Also known as: map_without_hooks!

Alias to :select that bypasses hooks.

Yields:

  • Block passed to :collect!.

Returns:

  • (Object)

    Self.



1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
# File 'lib/array/hooked/array_interface.rb', line 1152

def collect_without_hooks!( & block )
  
  @without_hooks = true

  collect!( & block )
  
  @without_hooks = false
  
  return self
  
end