module Polyfill::V2_5::Enumerable
Public Instance Methods
all?(*pattern)
click to toggle source
Calls superclass method
# File lib/polyfill/v2_5/enumerable.rb, line 4 def all?(*pattern) return super if pattern.empty? grep(*pattern).size == size end
any?(*pattern)
click to toggle source
Calls superclass method
# File lib/polyfill/v2_5/enumerable.rb, line 10 def any?(*pattern) return super if pattern.empty? !grep(*pattern).empty? end
none?(*pattern)
click to toggle source
Calls superclass method
# File lib/polyfill/v2_5/enumerable.rb, line 16 def none?(*pattern) return super if pattern.empty? grep(*pattern).empty? end
one?(*pattern)
click to toggle source
Calls superclass method
# File lib/polyfill/v2_5/enumerable.rb, line 22 def one?(*pattern) return super if pattern.empty? grep(*pattern).size == 1 end