Ruby 4.0 リファレンスマニュアル

instance method StringIO#rewind

rewind -> 0[permalink][rdoc][edit]
() → Integer

自身の pos と lineno をそれぞれ 0 にします。