method

minimum

Importance_1
v7.0.0 - Show latest stable - 0 notes - Class: Enumerable
minimum(key) public

Calculates the minimum from the extracted elements.

payments = [Payment.new(5), Payment.new(15), Payment.new(10)] payments.minimum(:price) # => 5

Show source
Register or log in to add new notes.