method

end

v2_2_9 - Show latest stable - Class: Range
end()
public

Returns the object that defines the end of the range.

(1..10).end    #=> 10
(1...10).end   #=> 10