Sha256: cb93e599db6e59b6666381969348d2c57a196aeff84d3e580ec08a029308f81c
Contents?: true
Size: 521 Bytes
Versions: 24
Compression:
Stored size: 521 Bytes
Contents
# encoding: utf-8 class Array # :nodoc: # Returns a new arrray with keys removed # def except(*keys) self.dup.except!(*keys) end unless method_defined? :except # Similar to except but modifies self # def except!(*items) copy = self.dup copy.reject! { |item| items.include? item } copy end unless method_defined? :except! # Selects a hash from the arguments list # def extract_options! last.is_a?(::Hash) ? pop : {} end unless method_defined? :extract_options! end # Array
Version data entries
24 entries across 24 versions & 4 rubygems