Re: Is there a library/mechanism for an object/hash hybrid?
- From: Gary Wright <gwtmp01@xxxxxxx>
- Date: Sat, 31 Mar 2007 06:23:07 +0900
On Mar 30, 2007, at 4:15 PM, Jan Friedrich wrote:
Gary Wright schrieb:OpenStruct doesn't define access via the indexing method:It's Ruby, define it. :)
info = OpenStruct.new
info.name = 'Gary'
info[:name] # undefined method
Of course. I was just pointing out that OpenStruct didn't
actually provide the features that the OP had asked for.
You can always roll your own.
Gary Wright
.
- References:
- Is there a library/mechanism for an object/hash hybrid?
- From: dtrusty@xxxxxxxxxxx
- Re: Is there a library/mechanism for an object/hash hybrid?
- From: Jan Friedrich
- Re: Is there a library/mechanism for an object/hash hybrid?
- From: Gary Wright
- Re: Is there a library/mechanism for an object/hash hybrid?
- From: Jan Friedrich
- Is there a library/mechanism for an object/hash hybrid?
- Prev by Date: simple gsub question \' \` what?
- Next by Date: Re: simple gsub question \' \` what?
- Previous by thread: Re: Is there a library/mechanism for an object/hash hybrid?
- Next by thread: Re: Is there a library/mechanism for an object/hash hybrid?
- Index(es):
Relevant Pages
|