PATH:
opt
/
alt
/
ruby34
/
share
/
ri
/
system
/
Range
U:RDoc::AnyMethod[iI" last:ETI"Range#last;TF:publico:RDoc::Markup::Document:@parts[o:RDoc::Markup::Paragraph; [I"HWith no argument, returns the last element of +self+, if it exists:;To:RDoc::Markup::BlankLine o:RDoc::Markup::Verbatim; [I"(1..4).last # => 4 ;TI"('a'..'d').last # => "d" ;T:@format0o; ; [I"INote that +last+ with no argument returns the end element of +self+ ;TI"%even if #exclude_end? is +true+:;T@o;; [I"(1...4).last # => 4 ;TI"('a'...'d').last # => "d" ;T; 0o; ; [I"3With non-negative integer argument +n+ given, ;TI"/returns the last +n+ elements in an array:;T@o;; [I"%(1..10).last(3) # => [8, 9, 10] ;TI"(1..10).last(0) # => [] ;TI"'(1..4).last(50) # => [1, 2, 3, 4] ;T; 0o; ; [I"NNote that +last+ with argument does not return the end element of +self+ ;TI" if #exclude_end? it +true+:;T@o;; [I"((1...4).last(3) # => [1, 2, 3] ;TI".('a'...'d').last(3) # => ["a", "b", "c"] ;T; 0o; ; [I"5Raises an exception if there is no last element:;T@o;; [I"#(1..).last # Raises RangeError;T; 0: @fileI"range.c;T:0@omit_headings_from_table_of_contents_below0I"%last -> object last(n) -> array ;T0[ I"(*args);T@2FI" Range;TcRDoc::NormalClass00
[-] last-i.ri
[edit]
[-] include%3f-i.ri
[edit]
[-] count-i.ri
[edit]
[-] size-i.ri
[edit]
[-] bsearch-i.ri
[edit]
[-] end-i.ri
[edit]
[-] to_s-i.ri
[edit]
[-] max-i.ri
[edit]
[-] to_json-i.ri
[edit]
[-] first-i.ri
[edit]
[-] as_json-i.ri
[edit]
[-] reverse_each-i.ri
[edit]
[-] cover%3f-i.ri
[edit]
[-] to_a-i.ri
[edit]
[-] new-c.ri
[edit]
[-] minmax-i.ri
[edit]
[-] json_create-c.ri
[edit]
[-] min-i.ri
[edit]
[-] hash-i.ri
[edit]
[-] each-i.ri
[edit]
[-] step-i.ri
[edit]
[-] %3d%3d%3d-i.ri
[edit]
[-] eql%3f-i.ri
[edit]
[-] cdesc-Range.ri
[edit]
[-] member%3f-i.ri
[edit]
[-] %25-i.ri
[edit]
[-] exclude_end%3f-i.ri
[edit]
[-] begin-i.ri
[edit]
[-] overlap%3f-i.ri
[edit]
[+]
..
[-] entries-i.ri
[edit]
[-] %3d%3d-i.ri
[edit]
[-] inspect-i.ri
[edit]