Module: Lazier::Math::ClassMethods
- Defined in:
- lib/lazier/math.rb
Overview
General methods.
Instance Method Summary (collapse)
-
- (Object) max(*args)
Returns the maximum value in the arguments.
-
- (Object) min(*args)
Returns the minimum value in the arguments.
Instance Method Details
- (Object) max(*args)
Returns the maximum value in the arguments
26 27 28 |
# File 'lib/lazier/math.rb', line 26 def max(*args) args.ensure_array.flatten.max end |
- (Object) min(*args)
Returns the minimum value in the arguments
18 19 20 |
# File 'lib/lazier/math.rb', line 18 def min(*args) args.ensure_array.flatten.min end |