From: Chris Parsons Date: 2006-10-05T21:15:05+09:00 Subject: Re: Ruby DSL for invoices chris@edendevelopment.co.uk wrote: > http://svn.edendevelopment.co.uk/public/invoice_dsl/ I've updated the DSL to support time and currency: i = new_invoice do 1.pound | 1.5.euros work_at 20.pounds / hour do spent 2.hours.on('Some work') spent 2.days.on('More work') # Note: assumes a day is 8 hours long end end print i.total.in.pounds # prints '360.00' print i.total.in.euros # prints '540.00' Blog post: http://blog.edendevelopment.co.uk/articles/2006/10/05/invoice-dsl-now-supports-time-and-currency