Some ruby code I happened to save in file (rather than irb) while reading 'The Well-Grounded Rubyist'