From: why the lucky stiff Date: 2003-08-06T10:55:02+09:00 Subject: Re: What's New and Shiny in Ruby 1.8.0? On Tuesday 05 August 2003 07:17 pm, Harry Ohlsen wrote: > > This would be particularly useful if the data items in the enumeration were > instances of more complex objects. Then, you could do things like: > > sorted = people.sort_by { |p| [p.last_name, p.first_name, p.salary] } > > I just love Ruby! If you don't mind, I'm going to add this tiny example to the page. This is incredibly readable and demonstrates a number of Ruby's brilliant features at once. I've also just finished a section on Procs, StringIO, -run, and fixed the Class.new and Module.new section. Just now starting on marshal_load, marshal_dump, String#[], String#to_i, and Array#zip. Whew! There's so much! _why