peek(len)
Instance Public methods
Extracts a string corresponding to string[pos,len]
, without
advancing the scan pointer.
s = StringScanner.new('test string') s.peek(7) # => "test st" s.peek(7) # => "test st"
Extracts a string corresponding to string[pos,len]
, without
advancing the scan pointer.
s = StringScanner.new('test string') s.peek(7) # => "test st" s.peek(7) # => "test st"
Please login to continue.