Introduced several common ruby idioms, especially 'inject' and '||='. Also reduced redundancy in patterns.
Merge pull request #1 from BinaryPaean/idioms

Introduced several common ruby idioms