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-12.6.0 lib/refinements/shared/ios/reread.rb
refinements-12.5.0 lib/refinements/shared/ios/reread.rb
refinements-12.4.0 lib/refinements/shared/ios/reread.rb
refinements-12.3.0 lib/refinements/shared/ios/reread.rb
refinements-12.2.0 lib/refinements/shared/ios/reread.rb
refinements-12.1.0 lib/refinements/shared/ios/reread.rb
refinements-12.0.1 lib/refinements/shared/ios/reread.rb
refinements-12.0.0 lib/refinements/shared/ios/reread.rb
refinements-11.1.3 lib/refinements/shared/ios/reread.rb
refinements-11.1.2 lib/refinements/shared/ios/reread.rb
refinements-11.1.1 lib/refinements/shared/ios/reread.rb
refinements-11.1.0 lib/refinements/shared/ios/reread.rb
refinements-11.0.1 lib/refinements/shared/ios/reread.rb
refinements-11.0.0 lib/refinements/shared/ios/reread.rb
refinements-10.1.1 lib/refinements/shared/ios/reread.rb
refinements-10.1.0 lib/refinements/shared/ios/reread.rb
refinements-10.0.1 lib/refinements/shared/ios/reread.rb
refinements-10.0.0 lib/refinements/shared/ios/reread.rb
refinements-9.8.0 lib/refinements/shared/ios/reread.rb
refinements-9.7.1 lib/refinements/shared/ios/reread.rb