Sha256: 2de1d94460720984d41d61cd440fe7ec7d310c63126663bc7fb07c4daa1aa24a
Contents?: true
Size: 387 Bytes
Versions: 5
Compression:
Stored size: 387 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!) def extract_options! last.is_a?(::Hash) ? pop : {} end unless method_defined?(:extract_options!) end # Array
Version data entries
5 entries across 5 versions & 2 rubygems