Q:

Call a method by name

Does anyone know how to call a method as a string?  For example:
case @setting.truck_identification
when "Make"
  t.make
when "VIN"
  t.VIN
when "Model"
  t.model
when "Registration"
  t.registration

.to_sym does not seem to work. 

A:

use .send:
t.send @setting.truck_identification.downcase

(vin should be downcase for it to work)

