From: Brian Candler Date: 2010-12-20T19:58:00+09:00 Subject: Re: How to implement such a Domain-Specific-Language (DSL)? "Jesús Gabriel y Galán" wrote in post #969520: > On Mon, Dec 20, 2010 at 8:22 AM, Zd Yu wrote: >> >> Can anybody give some hints? > If the only requirement is to have event_A evaluate to > events["event_A"] you can do that easily with method_missing. Or look at OpenStruct in the standard library (ostruct.rb), combined with instance_eval -- Posted via http://www.ruby-forum.com/.