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