Linux heracles.o2switch.net 4.18.0-553.62.1.lve.el8.x86_64 #1 SMP Mon Jul 21 17:50:35 UTC 2025 x86_64
/
opt
/
alt
/
ruby21
/
share
/
ri
/
2.1.0
/
system
/
String
/
//opt/alt/ruby21/share/ri/2.1.0/system/String/scanf-i.ri
U:RDoc::AnyMethod[iI" scanf:EFI"String#scanf;TF:publico:RDoc::Markup::Document:@parts[o:RDoc::Markup::Paragraph; [I"7Scans the current string. If a block is given, it ;TI"(functions exactly like block_scanf.;To:RDoc::Markup::BlankLine o:RDoc::Markup::Verbatim; [I"#arr = "123 456".scanf("%d%d") ;TI"# => [123, 456] ;TI" ;TI"require 'pp' ;TI" ;TI"?"this 123 read that 456 other".scanf("%s%d%s") {|m| pp m} ;TI" ;TI"# ["this", 123, "read"] ;TI"# ["that", 456, "other"] ;TI":# => [["this", 123, "read"], ["that", 456, "other"]] ;T:@format0o; ; [I"7See Scanf for details on creating a format string.;T@o; ; [I"9You will need to require 'scanf' to use String#scanf;T: @fileI"lib/scanf.rb;T:0@omit_headings_from_table_of_contents_below00I"current_match;F[ I"(fstr);T@"FI"String;TcRDoc::NormalClassI" scanf;T0