Invoice DSL updates

I've decided to move the invoice ruby DSL stuff I've been working on over to this blog; it fits nice and snugly over here.

So anyway, I've checked in a bunch of stuff on the DSL. Main improvements are to do with the currency part of the DSL, so that you can do some nice things with currency symbols:


1.pound('£') | 2.dollars('$')

Thereafter you don't need to mention the currency symbol, yet you get access to it when you come to output the data later:


@amt = 1.pound
p @amt.in.dollars.symbol # prints '$'

Neat, huh? Ruby's great.