Class: Array
- Inherits:
-
Object
- Object
- Array
- Defined in:
- lib/array.rb
Instance Method Summary collapse
Instance Method Details
#except ⇒ Object
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 |