Skip to content

Maintenance Ruby 3.4 gets fixes, but no new features. Switch to Ruby 4.0 →

instance method

StringScanner#scan_byte

scan_byte → integer_byte

Scans one byte and returns it as an integer. This method is not multibyte character sensitive. See also: getch.