Class: Laziest::MinMax::Max
- Inherits:
-
Laziest::MinMax
- Object
- Promise
- Laziest::MinMax
- Laziest::MinMax::Max
- Defined in:
- lib/laziest/minmax.rb
Overview
The individual Min and Max classes provide additional optimizations for naturally-ordered elements.
Instance Method Summary collapse
-
#initialize(enumerator) ⇒ Max
constructor
A new instance of Max.
Methods inherited from Laziest::MinMax
Constructor Details
#initialize(enumerator) ⇒ Max
Returns a new instance of Max.
61 62 63 |
# File 'lib/laziest/minmax.rb', line 61 def initialize enumerator super(enumerator, :>) end |