A Fluent Interface for Numeric Literals

In a fluent interface for numeric literals over on my blog I implemented a DSL that allows one to write Ruby code such as twelve.hundred.and.one and have it evaluate to the Integer 1201. The full source code, with tests, for that DSL is attached here -- feel free to download and use as you wish (but please remember to say where you got it).

AttachmentSize
literals.rb3.69 KB