From: Mike Stok Date: 2013-06-20T23:54:02+09:00 Subject: Re: Why the `#new_ostruct_member` not being able to add the `:email` ? On 2013-06-20, at 9:08 AM, Love U Ruby wrote: > Mike Stok wrote in post #1112971: > > > That's a great explanation,hope I would be able to go miles with this. > But during that course If I stuck,I would request you to help me. :)) One good place to get an overview of pry is http://www.confreaks.com/videos/2467-railsconf2013-pry-the-good-parts I have the pry-plus gem installed which bundles a load of useful extras together. https://github.com/rking/pry-plus Mike > > >> So we can see that for an attribute to show up in the output of inspect >> it needs to have been put in the OpenStruct instance's @table. >> >> I'll leave it to you to have a look at contact's method_missing to see >> how OpenStruct attributes might be set and retrieved so you can see the >> context in which new_ostruct_member is called. >> >> pry is a great tool. >> >> Hope this helps, >> >> Mike > > -- > Posted via http://www.ruby-forum.com/. -- Mike Stok http://www.stok.ca/~mike/ The "`Stok' disclaimers" apply.