lib/refinements/string_ios.rb in refinements-9.5.0 vs lib/refinements/string_ios.rb in refinements-9.6.0
- old
+ new
@@ -1,12 +1,13 @@
# frozen_string_literal: true
require "stringio"
+require "refinements/shared/ios/reread"
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)
+ import_methods Shared::IOs::Reread
end
end
end