From: Florian Gilcher Date: 2008-03-27T21:23:53+09:00 Subject: Re: instance_variable_[gs]et -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Mar 27, 2008, at 5:36 AM, Trans wrote: > > And why can't #instance_variable_set take a hash to set more than one > variable at a time? > > T. By the way, if you really need it, it is easily implemented on your own: Example: def set_instance_variables(variables) variables.each do |key, value| instance_variable_set("@#{key}", value) end end Greetings Florian -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.8 (Darwin) iEYEARECAAYFAkfrkdgACgkQJA/zY0IIRZYEZgCfSL2ym/23mZbHJvlKQhBc2UXu cXsAoJNTIlNFcPDVDAwO14KH4/wtsJ/h =xzdH -----END PGP SIGNATURE-----