Sha256: 700fcdc6c6f95c818d91df4391507ed46c05ba308bb5b8551528213ad939b20d

Contents?: true

Size: 314 Bytes

Versions: 16

Compression:

Stored size: 314 Bytes

Contents

class Array # :nodoc:

  def except(*keys) # :nodoc:
    puts "module except works!!!"
    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 # Hash

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
github_api-0.4.2 lib/github_api/core_ext/array.rb
github_api-0.4.1 lib/github_api/core_ext/array.rb
github_api-0.4.0 lib/github_api/core_ext/array.rb
github_api-0.3.9 lib/github_api/core_ext/array.rb
github_api-0.3.8 lib/github_api/core_ext/array.rb
github_api-0.3.7 lib/github_api/core_ext/array.rb
github_api-0.3.6 lib/github_api/core_ext/array.rb
github_api-0.3.4 lib/github_api/core_ext/array.rb
github_api-0.3.3 lib/github_api/core_ext/array.rb
github_api-0.3.2 lib/github_api/core_ext/array.rb
github_api-0.3.1 lib/github_api/core_ext/array.rb
github_api-0.3.0 lib/github_api/core_ext/array.rb
github_api-0.2.2 lib/github_api/core_ext/array.rb
github_api-0.2.1 lib/github_api/core_ext/array.rb
github_api-0.2.0 lib/github_api/core_ext/array.rb
github_api-0.1.2 lib/github_api/core_ext/array.rb