Creates a structure member with the
specified name and type. Generates accessor methods for
reading and writing the member value.
# File actionwebservice/lib/action_web_service/struct.rb, line 49
def member(name, type)
name = name.to_sym
type = ActionWebService::SignatureTypes.canonical_signature_entry({ name => type }, 0)
write_inheritable_hash("struct_members", name => type)
class_eval "def \#{name}; @\#{name}; end\ndef \#{name}=(value); @\#{name} = value; end\n"
end