D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
proc
/
self
/
root
/
opt
/
alt
/
ruby34
/
share
/
ri
/
system
/
String
/
Filename :
hex-i.ri
back
Copy
U:RDoc::AnyMethod[iI"hex:ETI"String#hex;TF:publico: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