From: Love U Ruby Date: 2013-06-20T22:08:27+09:00 Subject: Re: Why the `#new_ostruct_member` not being able to add the `:email` ? 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. :)) > 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/.