require 'ostruct'

contact = OpenStruct.new(first_name: "John", last_name: "Smith", phone:
"XXXXXXX")

contact.send(:new_ostruct_member ,:email) #= "john.doe / mymail.com"

p contact #=> #<OpenStruct first_name="John", last_name="Smith",
phone="XXXXXXX">

Why the `#new_ostruct_member` not being able to add the `:email` ?

-- 
Posted via http://www.ruby-forum.com/.