Class: Array

Inherits:
Object show all
Defined in:
lib/cloudkit.rb

Instance Method Summary collapse

Instance Method Details

#excluding(*keys) ⇒ Object

Return a new Array, excluding the specified list of values.



88
89
90
91
# File 'lib/cloudkit.rb', line 88

def excluding(*keys)
  trimmed = self.dup
  trimmed - keys
end