Sha256: a3e11c8171323af0e2f00a9ab284c929bb4fefa29ae88350de342035d7c10130

Contents?: true

Size: 225 Bytes

Versions: 15

Compression:

Stored size: 225 Bytes

Contents

# frozen_string_literal: true

require "stringio"

module Refinements
  module StringIOs
    refine StringIO do
      def reread length = nil, buffer: nil
        tap(&:rewind).read length, buffer
      end
    end
  end
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
refinements-8.0.1 lib/refinements/string_ios.rb
refinements-8.0.0 lib/refinements/string_ios.rb
refinements-7.18.0 lib/refinements/string_ios.rb
refinements-7.17.0 lib/refinements/string_ios.rb
refinements-7.16.0 lib/refinements/string_ios.rb
refinements-7.15.1 lib/refinements/string_ios.rb
refinements-7.15.0 lib/refinements/string_ios.rb
refinements-7.14.0 lib/refinements/string_ios.rb
refinements-7.13.0 lib/refinements/string_ios.rb
refinements-7.12.0 lib/refinements/string_ios.rb
refinements-7.11.0 lib/refinements/string_ios.rb
refinements-7.10.0 lib/refinements/string_ios.rb
refinements-7.9.0 lib/refinements/string_ios.rb
refinements-7.8.0 lib/refinements/string_ios.rb
refinements-7.7.0 lib/refinements/string_ios.rb