Re: Convert hash to struct

2009-06-19 Thread Amita Ekbote
PM, Lie Ryan wrote: > Amita Ekbote wrote: >> Hello, >> >> I am retrieving values from a database in the form of a dictionary so >> I can access the values as d['column'] and I was wondering if there is >> a way to convert the hash to a struct like for

Convert hash to struct

2009-06-19 Thread Amita Ekbote
Hello, I am retrieving values from a database in the form of a dictionary so I can access the values as d['column'] and I was wondering if there is a way to convert the hash to a struct like format so i can just say d.column. Makes it easier to read and understand. Thanks Amita