In a previous post I wrote about DSLs as Jargon. I implemented a simple Coffee DSL that would allow code to parse an order written by a human and turn it into a domain model. I used a fairly basic method_missing structure to capture the values.
There’s a much better way to do it in Ruby [...]
Archives for posts tagged ‘meta-programming’
Coffee DSL Redone With Meta-Programming
Monday, 7 January 2008