Skip to content

Maintenance Ruby 3.3 gets fixes, but no new features. 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')
# These two are opposites
s.eos? # => false
s.rest? # => true
See also #rest #rest_size #reset #restsize also in 3.2 · 3.1 · 3.0