← Reference

string-methods

Ruby string-methods reference.

String#hex

Converts the leading hex substring of a string to an integer, accepting optional 0x prefix.