Sha256: ef9a0315183decd53002c15e47767c32c373a91ff076936a4c6f7b483835b301

Contents?: true

Size: 210 Bytes

Versions: 245

Compression:

Stored size: 210 Bytes

Contents

# @private
class Array
  unless public_instance_methods.map {|m| m.to_s}.include?('none?')
    # Supports +none?+ on early patch levels of Ruby 1.8.6
    def none?(&block)
      !any?(&block)
    end
  end
end

Version data entries

245 entries across 144 versions & 26 rubygems

Version Path
clickable_link-0.0.2 vendor/bundle/ruby/1.9.1/gems/rspec-expectations-2.14.2/lib/rspec/expectations/extensions/array.rb
syllable_counter-1.0.0 vendor/bundle/gems/rspec-expectations-2.14.2/lib/rspec/expectations/extensions/array.rb
rspec-expectations-2.14.2 lib/rspec/expectations/extensions/array.rb
rspec-expectations-2.14.1 lib/rspec/expectations/extensions/array.rb
tnargav-1.2.3 vendor/bundle/ruby/1.9.1/gems/rspec-expectations-2.11.3/lib/rspec/expectations/extensions/array.rb
rspec-expectations-2.14.0 lib/rspec/expectations/extensions/array.rb
classiccms-0.7.2 vendor/bundle/gems/rspec-expectations-2.10.0/lib/rspec/expectations/extensions/array.rb
classiccms-0.7.2 vendor/bundle/gems/rspec-expectations-2.9.1/lib/rspec/expectations/extensions/array.rb
classiccms-0.7.2 vendor/bundle/gems/rspec-expectations-2.9.0/lib/rspec/expectations/extensions/array.rb
classiccms-0.7.1 vendor/bundle/gems/rspec-expectations-2.10.0/lib/rspec/expectations/extensions/array.rb
classiccms-0.7.1 vendor/bundle/gems/rspec-expectations-2.9.1/lib/rspec/expectations/extensions/array.rb
classiccms-0.7.1 vendor/bundle/gems/rspec-expectations-2.9.0/lib/rspec/expectations/extensions/array.rb
sshp-0.0.2 vendor/ruby/1.9.1/gems/rspec-expectations-2.13.0/lib/rspec/expectations/extensions/array.rb
sshp-0.0.1 vendor/ruby/1.9.1/gems/rspec-expectations-2.13.0/lib/rspec/expectations/extensions/array.rb
rspec-expectations-2.14.0.rc1 lib/rspec/expectations/extensions/array.rb
classiccms-0.7.0 vendor/bundle/gems/rspec-expectations-2.10.0/lib/rspec/expectations/extensions/array.rb
classiccms-0.7.0 vendor/bundle/gems/rspec-expectations-2.9.0/lib/rspec/expectations/extensions/array.rb
classiccms-0.7.0 vendor/bundle/gems/rspec-expectations-2.9.1/lib/rspec/expectations/extensions/array.rb
sidekiq-statsd-0.1.1 vendor/ruby/1.9.1/gems/rspec-expectations-2.13.0/lib/rspec/expectations/extensions/array.rb
sidekiq-statsd-0.1.0 vendor/ruby/1.9.1/gems/rspec-expectations-2.13.0/lib/rspec/expectations/extensions/array.rb