make ranges always include the last value


Category:
Scripts
Ruby
Requirements:
Seller:
Price:
-
System:
Rating:
4.5
License:

Description - make ranges always include the last value



So, in conjunction with other snipped about setting up intervals on time, this can be added to Range to make sure it always includes the last value, even if the interval doesn`t directly land you on the end value.



More in Ruby-make ranges always include the last value

Last Value Ranges Always Include