As I start to get fluent in ruby I often find myself using a more functional programming style, particularly when dealing with collections. That generally leads to lots of little block-centric operations. I recently discovered a really elegant trick to make that code a little nicer. Let's say there's a Person class: class Person attr_accessor :first_name, :last_name, :age end and I have a collection of people which I'd like to sort by age. An obvious approach would be: people.sort_by{ |person...