2013-11-15 53 views

回答

9

如果你的意思是实例变量,你可以这样做:

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