class RBS::CharScanner

Public Class Methods

new(string) click to toggle source
Calls superclass method
# File rbs-2.1.0/lib/rbs/char_scanner.rb, line 3
def initialize(string)
  super(string)
  @charpos = 0
end

Public Instance Methods

charpos() click to toggle source
# File rbs-2.1.0/lib/rbs/char_scanner.rb, line 10
def charpos
  @charpos
end
Also aliased as: original_charpos
original_charpos()
Alias for: charpos
scan(pattern) click to toggle source
Calls superclass method
# File rbs-2.1.0/lib/rbs/char_scanner.rb, line 14
def scan(pattern)
  s = super
  @charpos += s.size if s
  s
end