Sha256: e5c6852fcfcd2014acf2b02a069dbfc7a87e77efa8e8d83e0f4180fa6fbec395

Contents?: true

Size: 276 Bytes

Versions: 22

Compression:

Stored size: 276 Bytes

Contents

# frozen_string_literal: true

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

Version data entries

22 entries across 22 versions & 1 rubygems

Version Path
refinements-9.7.0 lib/refinements/shared/ios/reread.rb
refinements-9.6.0 lib/refinements/shared/ios/reread.rb