From: Farrel Lifson Date: 2006-08-08T18:49:26+09:00 Subject: Re: min, max for Fixnum? On 08/08/06, Ronald Fischer wrote: > Did I understand it right that there are no operators/functions > predefined in Ruby for getting the minimum and maximum for two Fixnum? > > I.e. > > def min(a,b) > a < b ? a : b > end > > Or did I just overlook something? > > Ronald > > > -- > Ronald Fischer > Posted via http://www.newsoffice.de/ > > > There is Enumerable#min. [10,5,3,7].min will return 3. Farrel