📁 File Manager Pro
v10.0.3 | PHP: 8.1.34
Server: Apache
2026-06-22 10:01:06
📂
/ (Root)
/
opt
/
alt
/
ruby33
/
share
/
ri
/
system
/
String
📍 /opt/alt/ruby33/share/ri/system/String
🔄 Refresh
✏️
Editing: hex-i.ri
Read Only
U:RDoc::AnyMethod[iI"hex:ETI"String#hex;TF:privateo:RDoc::Markup::Document:@parts[ o:RDoc::Markup::Paragraph; [ I"RInterprets the leading substring of +self+ as a string of hexadecimal digits ;TI"M(with an optional sign and an optional <code>0x</code>) and returns the ;TI"corresponding number; ;TI"8returns zero if there is no such leading substring:;To:RDoc::Markup::BlankLine o:RDoc::Markup::Verbatim; [ I"'0x0a'.hex # => 10 ;TI""'-1234'.hex # => -4660 ;TI"'0'.hex # => 0 ;TI"'non-numeric'.hex # => 0 ;T:@format0o; ; [I"Related: String#oct.;T: @fileI" string.c;T:0@omit_headings_from_table_of_contents_below0I"hex -> integer ;T0[ I"();T@FI"String;TcRDoc::NormalClass00
💾 Save Changes
❌ Cancel