lib/refinements/string_ios.rb in refinements-8.0.1 vs lib/refinements/string_ios.rb in refinements-8.1.0

- old
+ new

@@ -3,11 +3,9 @@ require "stringio" module Refinements module StringIOs refine StringIO do - def reread length = nil, buffer: nil - tap(&:rewind).read length, buffer - end + def reread(length = nil, buffer: nil) = tap(&:rewind).read(length, buffer) end end end