From: Tristan Clarke Date: 2011-07-22T21:24:26+09:00 Subject: Re: attr_accessor for hash keys Brian Candler wrote in post #1012394: > Tim Pease wrote in post #1012284: >> This sounds like a job for method_missing ... > > In which case, you might as well just use OpenStruct. > >>> require 'ostruct' > => true >>> os = OpenStruct.new :foo=>1, :bar=>2 > => # >>> os.foo > => 1 >>> os.bar > => 2 im new to this. i was wondering if the tutorial in try ruby is usefull and worth the time.i use to do turbo c -- Posted via http://www.ruby-forum.com/.