Forum: Ruby Re: Retreiving column values from a variable column name

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
DEBAUN, STEVE [AG-Contractor/2400] (Guest)
on 2006-05-26 03:32
(Received via mailing list)
text = shape.send(p)

essentially calls a method named 'p'.  So:

'foo'.send('upcase') => 'FOO'

This topic is locked and can not be replied to.