Sha256: 9b11eb65b3abdab8bf7aa2110f19e84301c839cfca42e8ca31c7ae64d47a88cc

Contents?: true

Size: 238 Bytes

Versions: 6

Compression:

Stored size: 238 Bytes

Contents

# frozen_string_literal: true

module Refinements
  module Shared
    # Provides functionality for I/O object rewinding.
    module Reread
      def reread(length = nil, buffer: nil) = tap(&:rewind).read(length, buffer)
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
refinements-12.11.0 lib/refinements/shared/reread.rb
refinements-12.10.0 lib/refinements/shared/reread.rb
refinements-12.9.0 lib/refinements/shared/reread.rb
refinements-12.8.0 lib/refinements/shared/reread.rb
refinements-12.7.1 lib/refinements/shared/reread.rb
refinements-12.7.0 lib/refinements/shared/reread.rb