Setting Struct properties with an index
It's rare that I get a chance to use structs but yesterday while parsing some xml (!!!) I wrote an algorythm where it would be handy to set values of a struct with an incrementing number rather than a symbol.
Low and Behold! Ruby Structs allow you to set attributes with either the name of the property or the ordinal with which it was declared.
Structs are a great data structure that I'm going to try to use more in my daily programming.