Sha256: f6e16582dd9eedadf14717241920b5e6299926741c2527e03372bba13126521a
Contents?: true
Size: 281 Bytes
Versions: 14
Compression:
Stored size: 281 Bytes
Contents
class Array # :nodoc: def except(*keys) # :nodoc: self.dup.except!(*keys) end unless method_defined?(:except) def except!(*items) # :nodoc: copy = self.dup copy.reject! { |item| items.include? item } copy end unless method_defined?(:except!) end # Array
Version data entries
14 entries across 14 versions & 1 rubygems