StringScanner
# File rbs-2.1.0/lib/rbs/char_scanner.rb, line 3 def initialize(string) super(string) @charpos = 0 end
# File rbs-2.1.0/lib/rbs/char_scanner.rb, line 10 def charpos @charpos end
# File rbs-2.1.0/lib/rbs/char_scanner.rb, line 14 def scan(pattern) s = super @charpos += s.size if s s end
This page was generated for Ruby 3.1.2
Ruby-doc.org is a service of James Britt and Neurogami, an erratic source of art, music, and technology.
Generated with Ruby-doc Rdoc Generator 0.42.0.