method

eos?

v1_8_6_287 - Show latest stable - Class: StringScanner
eos?()
public

Returns true if the scan pointer is at the end of the string.

  s = StringScanner.new('test string')
  p s.eos?          # => false
  s.scan(/test/)
  p s.eos?          # => false
  s.terminate
  p s.eos?          # => true