Sha256: 700fcdc6c6f95c818d91df4391507ed46c05ba308bb5b8551528213ad939b20d
Contents?: true
Size: 314 Bytes
Versions: 16
Compression:
Stored size: 314 Bytes
Contents
class Array # :nodoc: def except(*keys) # :nodoc: puts "module except works!!!" 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 # Hash
Version data entries
16 entries across 16 versions & 1 rubygems