Why Gemfury? Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Debian packages RPM packages NuGet packages

Repository URL to install this package:

Details    
ruby / usr / share / ri / 2.2.0 / system / String / upto-i.ri
Size: Mime:
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 <i>str</i> and ;TI"Iending at <i>other_str</i> inclusive, passing each value in turn to ;TI"Hthe block. The <code>String#succ</code> 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::BlankLineo;
;	[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"<em>produces:</em>;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 <i>str</i> and <i>other_str</i> 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