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
github_api-0.8.10 lib/github_api/core_ext/array.rb
github_api-0.8.9 lib/github_api/core_ext/array.rb
github_api-0.8.8 lib/github_api/core_ext/array.rb
github_api-0.8.7 lib/github_api/core_ext/array.rb
github_api-0.8.6 lib/github_api/core_ext/array.rb
github_api-0.8.5 lib/github_api/core_ext/array.rb
github_api-0.8.4 lib/github_api/core_ext/array.rb
github_api-0.8.3 lib/github_api/core_ext/array.rb
github_api-0.8.2 lib/github_api/core_ext/array.rb
github_api-0.8.1 lib/github_api/core_ext/array.rb
github_api-0.8.0 lib/github_api/core_ext/array.rb
github_api-0.7.2 lib/github_api/core_ext/array.rb
github_api-0.7.1 lib/github_api/core_ext/array.rb
github_api-0.7.0 lib/github_api/core_ext/array.rb
github_api-0.6.5 lib/github_api/core_ext/array.rb
bitbucket_rest_api-0.1.1 lib/bitbucket_rest_api/core_ext/array.rb
bitbucket_rest_api-0.1.0 lib/bitbucket_rest_api/core_ext/array.rb
github_api-0.6.4 lib/github_api/core_ext/array.rb
github_api-0.6.3 lib/github_api/core_ext/array.rb
github_api-0.6.2 lib/github_api/core_ext/array.rb