PATH:
opt
/
alt
/
ruby18
/
share
/
ri
/
1.8
/
system
/
StringScanner
--- !ruby/object:RI::MethodDescription aliases: [] block_params: comment: - !ruby/struct:SM::Flow::P body: Tries to match with <tt>pattern</tt> at the current position. If there's a match, the scanner advances the "scan pointer" and returns the matched string. Otherwise, the scanner returns <tt>nil</tt>. - !ruby/struct:SM::Flow::VERB body: " s = StringScanner.new('test string')\n p s.scan(/\\w+/) # -> "test"\n p s.scan(/\\w+/) # -> nil\n p s.scan(/\\s+/) # -> " "\n p s.scan(/\\w+/) # -> "string"\n p s.scan(/./) # -> nil\n" full_name: StringScanner#scan is_singleton: false name: scan params: " scan(pattern) => String\n" visibility: public
[-] scan_full-i.yaml
[edit]
[+]
Error
[-] peek-i.yaml
[edit]
[-] concat-i.yaml
[edit]
[-] get_byte-i.yaml
[edit]
[-] scan-i.yaml
[edit]
[-] search_full-i.yaml
[edit]
[-] skip_until-i.yaml
[edit]
[-] post_match-i.yaml
[edit]
[-] terminate-i.yaml
[edit]
[-] empty%3f-i.yaml
[edit]
[-] pre_match-i.yaml
[edit]
[-] matched%3f-i.yaml
[edit]
[-] beginning_of_line%3f-i.yaml
[edit]
[-] check-i.yaml
[edit]
[-] pos-i.yaml
[edit]
[-] restsize-i.yaml
[edit]
[-] rest_size-i.yaml
[edit]
[-] peep-i.yaml
[edit]
[-] %3c%3c-i.yaml
[edit]
[-] string%3d-i.yaml
[edit]
[-] skip-i.yaml
[edit]
[-] cdesc-StringScanner.yaml
[edit]
[-] exist%3f-i.yaml
[edit]
[-] matched-i.yaml
[edit]
[-] initialize_copy-i.yaml
[edit]
[-] inspect-i.yaml
[edit]
[-] eos%3f-i.yaml
[edit]
[-] match%3f-i.yaml
[edit]
[-] clear-i.yaml
[edit]
[-] rest-i.yaml
[edit]
[-] pointer-i.yaml
[edit]
[-] unscan-i.yaml
[edit]
[-] getch-i.yaml
[edit]
[-] rest%3f-i.yaml
[edit]
[-] pointer%3d-i.yaml
[edit]
[-] matchedsize-i.yaml
[edit]
[-] %5b%5d-i.yaml
[edit]
[-] getbyte-i.yaml
[edit]
[-] pos%3d-i.yaml
[edit]
[+]
..
[-] scan_until-i.yaml
[edit]
[-] matched_size-i.yaml
[edit]
[-] check_until-i.yaml
[edit]
[-] new-c.yaml
[edit]
[-] reset-i.yaml
[edit]
[-] must_C_version-c.yaml
[edit]
[-] string-i.yaml
[edit]