From: sto.mar@... Date: 2013-06-21T03:51:49+09:00 Subject: Re: Why the `#new_ostruct_member` not being able to add the `:email` ? Am 20.06.2013 12:09, schrieb Love U Ruby: > require 'ostruct' > > contact = OpenStruct.new(first_name: "John", last_name: "Smith", phone: > "XXXXXXX") > > contact.send(:new_ostruct_member ,:email) #= "john.doe@mymail.com" simply use contact.email = 'john.doe@mymail.com' > p contact #=> # phone="XXXXXXX"> > > Why the `#new_ostruct_member` not being able to add the `:email` ? --