U:RDoc::AnyMethod[iI" upto:ETI"String#upto;TF:publico:RDoc::Markup::Document:@parts[o:RDoc::Markup::Paragraph; [
I"DIterates through successive values, starting at str and ;TI"Iending at other_str inclusive, passing each value in turn to ;TI"Hthe block. The String#succ
method is used to generate ;TI"Peach value. If optional second argument exclusive is omitted or is false, ;TI"Dthe last value will be included; otherwise it will be excluded.;To:RDoc::Markup::BlankLine o;
; [I"=If no block is given, an enumerator is returned instead.;T@o:RDoc::Markup::Verbatim; [ I")"a8".upto("b6") {|s| print s, ' ' }
;TI"for s in "a8".."b6"
;TI" print s, ' '
;TI" end
;T:@format0o;
; [I"produces:;T@o;; [I" a8 a9 b0 b1 b2 b3 b4 b5 b6
;TI" a8 a9 b0 b1 b2 b3 b4 b5 b6
;T;
0o;
; [I"PIf str and other_str contains only ascii numeric characters, ;TI"Gboth are recognized as decimal numbers. In addition, the width of ;TI":string (e.g. leading zeros) is handled appropriately.;T@o;; [I"1"9".upto("11").to_a #=> ["9", "10", "11"]
;TI"""25".upto("5").to_a #=> []
;TI"="07".upto("11").to_a #=> ["07", "08", "09", "10", "11"];T;
0:
@fileI"
string.c;T:0@omit_headings_from_table_of_contents_below0I"€str.upto(other_str, exclusive=false) {|s| block } -> str
str.upto(other_str, exclusive=false) -> an_enumerator
;T0[ I"(p1, p2 = v2);T@-FI"String;TcRDoc::NormalClassI"
scanf;T0