I want to create underscored method alias names for a legacy table …
Whats the best way to do this … ?
column_names.each do |name|
define_method(name.underscore) {self.send(name)}
define_method(name.underscore+’=’) {|a| self.send(name
+’=’,a)}
end