D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
proc
/
self
/
root
/
opt
/
alt
/
ruby34
/
share
/
ri
/
system
/
Range
/
Filename :
new-c.ri
back
Copy
U:RDoc::AnyMethod[iI"new:ETI"Range::new;TT:publico:RDoc::Markup::Document:@parts[o:RDoc::Markup::Paragraph; [I"GReturns a new range based on the given objects +begin+ and +end+. ;TI"EOptional argument +exclude_end+ determines whether object +end+ ;TI"1is included as the last object in the range:;To:RDoc::Markup::BlankLine o:RDoc::Markup::Verbatim; [ I"7Range.new(2, 5).to_a # => [2, 3, 4, 5] ;TI"4Range.new(2, 5, true).to_a # => [2, 3, 4] ;TI"?Range.new('a', 'd').to_a # => ["a", "b", "c", "d"] ;TI"9Range.new('a', 'd', true).to_a # => ["a", "b", "c"];T:@format0: @fileI"range.c;T:0@omit_headings_from_table_of_contents_below0I"=Range.new(begin, end, exclude_end = false) -> new_range ;T0[ I"(p1, p2, p3 = v3);T@FI" Range;TcRDoc::NormalClass00