Class: Array

Inherits:
Object
  • Object
show all
Defined in:
lib/array.rb

Instance Method Summary collapse

Instance Method Details

#exceptObject



2
3
4
5
6
# File 'lib/array.rb', line 2

def except
  result = self.select{|value| yield(value) }
  self.delete_if{|value| yield(value) }
  result
end