"Jess Gabriel y Galn" <jgabrielygalan / gmail.com> wrote in post #969520:
> On Mon, Dec 20, 2010 at 8:22 AM, Zd Yu <zdyu2000 / gmail.com> 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