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

Version Path
codenamev_bitbucket_api-0.4.1 lib/bitbucket_rest_api/core_ext/array.rb
codenamev_bitbucket_api-0.4.0 lib/bitbucket_rest_api/core_ext/array.rb
reenhanced_bitbucket_api-0.3.2 lib/bitbucket_rest_api/core_ext/array.rb
reenhanced_bitbucket_api-0.3.1 lib/bitbucket_rest_api/core_ext/array.rb
reenhanced_bitbucket_api-0.3.0 lib/bitbucket_rest_api/core_ext/array.rb