Skip to content

End of Life Ruby 3.2 has reached end of life and gets no more fixes. Switch to Ruby 4.0 →

instance method

StringScanner#rest?

rest?

Returns true if and only if there is more data in the string. See eos?. This method is obsolete; use eos? instead.

Example
s = StringScanner.new('test string')
s.eos?              # These two
s.rest?             # are opposites.
See also #rest #rest_size #reset #restsize also in 3.3 · 3.1 · 3.0