Method: Interval#max
- Defined in:
- lib/mega/interval.rb
#max ⇒ Object
Returns the greater of the first and last sentinals.
176 177 178 |
# File 'lib/mega/interval.rb', line 176 def max ((@first <=> @last) == 1) ? @first : @last end |
Returns the greater of the first and last sentinals.
176 177 178 |
# File 'lib/mega/interval.rb', line 176 def max ((@first <=> @last) == 1) ? @first : @last end |