method

minimum

Importance_1
Ruby on Rails latest stable (v7.1.3.2) - 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.