Sha256: f6e16582dd9eedadf14717241920b5e6299926741c2527e03372bba13126521a

Contents?: true

Size: 281 Bytes

Versions: 14

Compression:

Stored size: 281 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!)

end # Array

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
github_api-0.5.3 lib/github_api/core_ext/array.rb
github_api-0.5.2 lib/github_api/core_ext/array.rb
github_api-0.5.1 lib/github_api/core_ext/array.rb
github_api-0.5.0 lib/github_api/core_ext/array.rb
github_api-0.5.0.rc1 lib/github_api/core_ext/array.rb
github_api-0.4.11 lib/github_api/core_ext/array.rb
github_api-0.4.10 lib/github_api/core_ext/array.rb
github_api-0.4.9 lib/github_api/core_ext/array.rb
github_api-0.4.8 lib/github_api/core_ext/array.rb
github_api-0.4.7 lib/github_api/core_ext/array.rb
github_api-0.4.6 lib/github_api/core_ext/array.rb
github_api-0.4.5 lib/github_api/core_ext/array.rb
github_api-0.4.4 lib/github_api/core_ext/array.rb
github_api-0.4.3 lib/github_api/core_ext/array.rb