eos?

eos?()
Instance Public methods

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
doc_ruby_on_rails
2015-05-16 02:25:07
Comments
Leave a Comment

Please login to continue.