← Reference

string-methods

Ruby string-methods reference.

String#oct

Converts a string to an integer by interpreting leading characters as octal. Handles 0b/0x prefixes, negative numbers, and stops at the first non-octal digit