lib/lite/ruby/enumerable.rb in lite-ruby-1.1.7 vs lib/lite/ruby/enumerable.rb in lite-ruby-1.1.8

- old
+ new

@@ -55,15 +55,13 @@ end found_count > num ? false : num == found_count end - # rubocop:disable Style/CaseEquality def excase?(object) - none? { |val| object === val } + none?(object) end - # rubocop:enable Style/CaseEquality def expand map { |val| val.is_a?(Enumerable) ? val.expand : val } end @@ -77,14 +75,12 @@ def frequency each_with_object(Hash.new(0)) { |val, hash| hash[val] += 1 } end - # rubocop:disable Style/CaseEquality def incase?(object) - any? { |val| object === val } + any?(object) end - # rubocop:enable Style/CaseEquality # rubocop:disable Metrics/MethodLength def interpose(sep, &block) enum = Enumerator.new do |val| items = each