Method: Interval#min
- Defined in:
- lib/mega/interval.rb
#min ⇒ Object
Returns the lesser of the first and last sentinals.
171 172 173 |
# File 'lib/mega/interval.rb', line 171 def min ((@first <=> @last) == -1) ? @first : @last end |
Returns the lesser of the first and last sentinals.
171 172 173 |
# File 'lib/mega/interval.rb', line 171 def min ((@first <=> @last) == -1) ? @first : @last end |