2013-11-15 96 views

回答

9

如果你的意思是實例變量,你可以這樣做:

instance_variable_set('@' + 'Patient'.downcase, Patient.last)