Sha256: 935dbd5f7a40ded1c291d572ffd9469be660601cde3f2d0de75bcadfad3bdfdb

Contents?: true

Size: 593 Bytes

Versions: 2

Compression:

Stored size: 593 Bytes

Contents

module Polyfill
  module V2_4
    module Enumerator
      module Lazy
        module Instance
          module ChunkWhile
            module Method
              Utils.when_ruby_below('2.3') do
                using V2_3::Enumerable::Instance::ChunkWhile
              end

              def chunk_while
                super.lazy
              end
            end

            refine ::Enumerator::Lazy do
              include Method
            end

            def self.included(base)
              base.include Method
            end
          end
        end
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
polyfill-0.6.0 lib/polyfill/v2_4/enumerator/lazy/instance/chunk_while.rb
polyfill-0.5.0 lib/polyfill/v2_4/enumerator/lazy/instance/chunk_while.rb