Class: StringScanner

Inherits:
Object
  • Object
show all
Defined in:
sig/strscan.rbs

Overview

Minimal StringScanner type declarations for simple_oauth

Instance Method Summary collapse

Constructor Details

#initializeStringScanner

Returns a new instance of StringScanner.

Parameters:

  • string (String)


3
# File 'sig/strscan.rbs', line 3

def initialize: (String string) -> void

Instance Method Details

#[]String?

Parameters:

  • index (Integer)

Returns:

  • (String, nil)


8
# File 'sig/strscan.rbs', line 8

def []: (Integer index) -> String?

#eos?Boolean

Returns:

  • (Boolean)


5
# File 'sig/strscan.rbs', line 5

def eos?: () -> bool

#posInteger

Returns:

  • (Integer)


7
# File 'sig/strscan.rbs', line 7

def pos: () -> Integer

#restString

Returns:

  • (String)


6
# File 'sig/strscan.rbs', line 6

def rest: () -> String

#scanString?

Parameters:

  • pattern (Regexp)

Returns:

  • (String, nil)


4
# File 'sig/strscan.rbs', line 4

def scan: (Regexp pattern) -> String?