When using triple point notation in a Range Ruby object, I get the following:
(0...5).each{|n| pn} 0 1 2 3 4
When I use the last method, I get:
(0...5).last => 5
I would expect 4
This is mistake? Or is there something I don't understand about the concept of a Range object?
Rempargo
source share