Nifty tiny Prolog interpreter implemented as a Ruby DSL. Looking at the use cases, this thing looks already fairly functional! Embedded minilanguages are definitely the way to go.