Sha256: 0f2fd386d2a3abf8e2a50c65e193eb1cc66449fbaab4615f60c99dea5c5dcf52

Contents?: true

Size: 345 Bytes

Versions: 63

Compression:

Stored size: 345 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

end # Array

Version data entries

63 entries across 63 versions & 4 rubygems

Version Path
nimbu-api-0.5.0 lib/nimbu-api/utils/extend_array.rb
nimbu-api-0.4.4 lib/nimbu-api/utils/extend_array.rb
nimbu-api-0.4.3 lib/nimbu-api/utils/extend_array.rb
nimbu-api-0.4.2 lib/nimbu-api/utils/extend_array.rb
nimbu-api-0.4.1 lib/nimbu-api/utils/extend_array.rb
nimbu-api-0.4.0 lib/nimbu-api/utils/extend_array.rb
nimbu-api-0.3.0 lib/nimbu-api/utils/extend_array.rb
bitbucket_rest_api-0.1.7 lib/bitbucket_rest_api/core_ext/array.rb
reenhanced_bitbucket_api-0.1.6 lib/bitbucket_rest_api/core_ext/array.rb
github_api-0.11.2 lib/github_api/core_ext/array.rb
nimbu-api-0.2.1 lib/nimbu-api/utils/extend_array.rb
nimbu-api-0.2 lib/nimbu-api/utils/extend_array.rb
github_api-0.11.1 lib/github_api/core_ext/array.rb
github_api-0.11.0 lib/github_api/core_ext/array.rb
bitbucket_rest_api-0.1.5 lib/bitbucket_rest_api/core_ext/array.rb
nimbu-api-0.2.beta.3 lib/nimbu-api/utils/extend_array.rb
bitbucket_rest_api-0.1.4 lib/bitbucket_rest_api/core_ext/array.rb
nimbu-api-0.2.beta.2 lib/nimbu-api/utils/extend_array.rb
nimbu-api-0.2.beta.1 lib/nimbu-api/utils/extend_array.rb
nimbu-api-0.2.beta lib/nimbu-api/utils/extend_array.rb