Ruby/Range/min

Материал из Wiki.crossplatform.ru

Перейти к: навигация, поиск

The min Function gives the lowest number in the range:

range1 = 1..100
puts range1.min
# The output of this code is 1.