lib/refinements/string_ios.rb in refinements-8.2.2 vs lib/refinements/string_ios.rb in refinements-8.3.0
- old
+ new
@@ -1,9 +1,10 @@
# frozen_string_literal: true
require "stringio"
module Refinements
+ # Provides additional enhancements to the StringIO primitive.
module StringIOs
refine StringIO do
def reread(length = nil, buffer: nil) = tap(&:rewind).read(length, buffer)
end
end