--- !ruby/object:RDoc::RI::ClassDescription 
attributes: []

class_methods: 
- !ruby/object:RDoc::RI::MethodSummary 
  name: must_C_version
- !ruby/object:RDoc::RI::MethodSummary 
  name: new
comment: 
- !ruby/struct:RDoc::Markup::Flow::P 
  :body: "StringScanner provides for lexical scanning operations on a String. Here is an example of its usage:"
- !ruby/struct:RDoc::Markup::Flow::VERB 
  :body: "  s = StringScanner.new('This is an example string')\n  s.eos?               # -&gt; false\n\n  p s.scan(/\\w+/)      # -&gt; &quot;This&quot;\n  p s.scan(/\\w+/)      # -&gt; nil\n  p s.scan(/\\s+/)      # -&gt; &quot; &quot;\n  p s.scan(/\\s+/)      # -&gt; nil\n  p s.scan(/\\w+/)      # -&gt; &quot;is&quot;\n  s.eos?               # -&gt; false\n\n  p s.scan(/\\s+/)      # -&gt; &quot; &quot;\n  p s.scan(/\\w+/)      # -&gt; &quot;an&quot;\n  p s.scan(/\\s+/)      # -&gt; &quot; &quot;\n  p s.scan(/\\w+/)      # -&gt; &quot;example&quot;\n  p s.scan(/\\s+/)      # -&gt; &quot; &quot;\n  p s.scan(/\\w+/)      # -&gt; &quot;string&quot;\n  s.eos?               # -&gt; true\n\n  p s.scan(/\\s+/)      # -&gt; nil\n  p s.scan(/\\w+/)      # -&gt; nil\n"
- !ruby/struct:RDoc::Markup::Flow::P 
  :body: Scanning a string means remembering the position of a <em>scan pointer</em>, which is just an index. The point of scanning is to move forward a bit at a time, so matches are sought after the scan pointer; usually immediately after it.
- !ruby/struct:RDoc::Markup::Flow::P 
  :body: "Given the string &quot;test string&quot;, here are the pertinent scan pointer positions:"
- !ruby/struct:RDoc::Markup::Flow::VERB 
  :body: "    t e s t   s t r i n g\n  0 1 2 ...             1\n                        0\n"
- !ruby/struct:RDoc::Markup::Flow::P 
  :body: "When you #scan for a pattern (a regular expression), the match must occur at the character after the scan pointer. If you use #scan_until, then the match can occur anywhere after the scan pointer. In both cases, the scan pointer moves <em>just beyond</em> the last character of the match, ready to scan again from the next character onwards. This is demonstrated by the example above."
- !ruby/struct:RDoc::Markup::Flow::H 
  :level: 2
  :text: Method Categories
- !ruby/struct:RDoc::Markup::Flow::P 
  :body: There are other methods besides the plain scanners. You can look ahead in the string without actually scanning. You can access the most recent match. You can modify the string being scanned, reset or terminate the scanner, find out or change the position of the scan pointer, skip ahead, and so on.
- !ruby/struct:RDoc::Markup::Flow::H 
  :level: 3
  :text: Advancing the Scan Pointer
- !ruby/object:RDoc::Markup::Flow::LIST 
  contents: 
  - !ruby/struct:RDoc::Markup::Flow::LI 
    :label: "-"
    :body: "#getch"
  - !ruby/struct:RDoc::Markup::Flow::LI 
    :label: "-"
    :body: "#get_byte"
  - !ruby/struct:RDoc::Markup::Flow::LI 
    :label: "-"
    :body: "#scan"
  - !ruby/struct:RDoc::Markup::Flow::LI 
    :label: "-"
    :body: "#scan_until"
  - !ruby/struct:RDoc::Markup::Flow::LI 
    :label: "-"
    :body: "#skip"
  - !ruby/struct:RDoc::Markup::Flow::LI 
    :label: "-"
    :body: "#skip_until"
  type: :BULLET
- !ruby/struct:RDoc::Markup::Flow::H 
  :level: 3
  :text: Looking Ahead
- !ruby/object:RDoc::Markup::Flow::LIST 
  contents: 
  - !ruby/struct:RDoc::Markup::Flow::LI 
    :label: "-"
    :body: "#check"
  - !ruby/struct:RDoc::Markup::Flow::LI 
    :label: "-"
    :body: "#check_until"
  - !ruby/struct:RDoc::Markup::Flow::LI 
    :label: "-"
    :body: "#exist?"
  - !ruby/struct:RDoc::Markup::Flow::LI 
    :label: "-"
    :body: "#match?"
  - !ruby/struct:RDoc::Markup::Flow::LI 
    :label: "-"
    :body: "#peek"
  type: :BULLET
- !ruby/struct:RDoc::Markup::Flow::H 
  :level: 3
  :text: Finding Where we Are
- !ruby/object:RDoc::Markup::Flow::LIST 
  contents: 
  - !ruby/struct:RDoc::Markup::Flow::LI 
    :label: "-"
    :body: "#beginning_of_line? (#bol?)"
  - !ruby/struct:RDoc::Markup::Flow::LI 
    :label: "-"
    :body: "#eos?"
  - !ruby/struct:RDoc::Markup::Flow::LI 
    :label: "-"
    :body: "#rest?"
  - !ruby/struct:RDoc::Markup::Flow::LI 
    :label: "-"
    :body: "#rest_size"
  - !ruby/struct:RDoc::Markup::Flow::LI 
    :label: "-"
    :body: "#pos"
  type: :BULLET
- !ruby/struct:RDoc::Markup::Flow::H 
  :level: 3
  :text: Setting Where we Are
- !ruby/object:RDoc::Markup::Flow::LIST 
  contents: 
  - !ruby/struct:RDoc::Markup::Flow::LI 
    :label: "-"
    :body: "#reset"
  - !ruby/struct:RDoc::Markup::Flow::LI 
    :label: "-"
    :body: "#terminate"
  - !ruby/struct:RDoc::Markup::Flow::LI 
    :label: "-"
    :body: "#pos="
  type: :BULLET
- !ruby/struct:RDoc::Markup::Flow::H 
  :level: 3
  :text: Match Data
- !ruby/object:RDoc::Markup::Flow::LIST 
  contents: 
  - !ruby/struct:RDoc::Markup::Flow::LI 
    :label: "-"
    :body: "#matched"
  - !ruby/struct:RDoc::Markup::Flow::LI 
    :label: "-"
    :body: "#matched?"
  - !ruby/struct:RDoc::Markup::Flow::LI 
    :label: "-"
    :body: "#matched_size"
  - !ruby/struct:RDoc::Markup::Flow::LI 
    :label: "-"
    :body: "[]"
  - !ruby/struct:RDoc::Markup::Flow::LI 
    :label: "-"
    :body: "#pre_match"
  - !ruby/struct:RDoc::Markup::Flow::LI 
    :label: "-"
    :body: "#post_match"
  type: :BULLET
- !ruby/struct:RDoc::Markup::Flow::H 
  :level: 3
  :text: Miscellaneous
- !ruby/object:RDoc::Markup::Flow::LIST 
  contents: 
  - !ruby/struct:RDoc::Markup::Flow::LI 
    :label: "-"
    :body: "&lt;&lt;"
  - !ruby/struct:RDoc::Markup::Flow::LI 
    :label: "-"
    :body: "#concat"
  - !ruby/struct:RDoc::Markup::Flow::LI 
    :label: "-"
    :body: "#string"
  - !ruby/struct:RDoc::Markup::Flow::LI 
    :label: "-"
    :body: "#string="
  - !ruby/struct:RDoc::Markup::Flow::LI 
    :label: "-"
    :body: "#unscan"
  type: :BULLET
- !ruby/struct:RDoc::Markup::Flow::P 
  :body: There are aliases to several of the methods.
constants: []

full_name: StringScanner
includes: []

instance_methods: 
- !ruby/object:RDoc::RI::MethodSummary 
  name: "<<"
- !ruby/object:RDoc::RI::MethodSummary 
  name: "[]"
- !ruby/object:RDoc::RI::MethodSummary 
  name: beginning_of_line?
- !ruby/object:RDoc::RI::MethodSummary 
  name: check
- !ruby/object:RDoc::RI::MethodSummary 
  name: check_until
- !ruby/object:RDoc::RI::MethodSummary 
  name: clear
- !ruby/object:RDoc::RI::MethodSummary 
  name: concat
- !ruby/object:RDoc::RI::MethodSummary 
  name: empty?
- !ruby/object:RDoc::RI::MethodSummary 
  name: eos?
- !ruby/object:RDoc::RI::MethodSummary 
  name: exist?
- !ruby/object:RDoc::RI::MethodSummary 
  name: get_byte
- !ruby/object:RDoc::RI::MethodSummary 
  name: getbyte
- !ruby/object:RDoc::RI::MethodSummary 
  name: getch
- !ruby/object:RDoc::RI::MethodSummary 
  name: initialize_copy
- !ruby/object:RDoc::RI::MethodSummary 
  name: inspect
- !ruby/object:RDoc::RI::MethodSummary 
  name: match?
- !ruby/object:RDoc::RI::MethodSummary 
  name: matched
- !ruby/object:RDoc::RI::MethodSummary 
  name: matched?
- !ruby/object:RDoc::RI::MethodSummary 
  name: matched_size
- !ruby/object:RDoc::RI::MethodSummary 
  name: matchedsize
- !ruby/object:RDoc::RI::MethodSummary 
  name: peek
- !ruby/object:RDoc::RI::MethodSummary 
  name: peep
- !ruby/object:RDoc::RI::MethodSummary 
  name: pointer
- !ruby/object:RDoc::RI::MethodSummary 
  name: pointer=
- !ruby/object:RDoc::RI::MethodSummary 
  name: pos
- !ruby/object:RDoc::RI::MethodSummary 
  name: pos=
- !ruby/object:RDoc::RI::MethodSummary 
  name: post_match
- !ruby/object:RDoc::RI::MethodSummary 
  name: pre_match
- !ruby/object:RDoc::RI::MethodSummary 
  name: reset
- !ruby/object:RDoc::RI::MethodSummary 
  name: rest
- !ruby/object:RDoc::RI::MethodSummary 
  name: rest?
- !ruby/object:RDoc::RI::MethodSummary 
  name: rest_size
- !ruby/object:RDoc::RI::MethodSummary 
  name: restsize
- !ruby/object:RDoc::RI::MethodSummary 
  name: scan
- !ruby/object:RDoc::RI::MethodSummary 
  name: scan_full
- !ruby/object:RDoc::RI::MethodSummary 
  name: scan_until
- !ruby/object:RDoc::RI::MethodSummary 
  name: search_full
- !ruby/object:RDoc::RI::MethodSummary 
  name: skip
- !ruby/object:RDoc::RI::MethodSummary 
  name: skip_until
- !ruby/object:RDoc::RI::MethodSummary 
  name: string
- !ruby/object:RDoc::RI::MethodSummary 
  name: string=
- !ruby/object:RDoc::RI::MethodSummary 
  name: terminate
- !ruby/object:RDoc::RI::MethodSummary 
  name: unscan
name: StringScanner
superclass: Object
