class Crass::Scanner

def initialize(input)

Experimental RBS support (using type sampling data from the type_fusion project).

def initialize: (String input) -> void

This signature was generated using 2 samples from 1 application.

Creates a Scanner instance for the given _input_ string or IO instance.
def initialize(input)
  @string  = input.is_a?(IO) ? input.read : input.to_s
  @scanner = StringScanner.new(@string)
  reset
end