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

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
3be45f6ce2674d66238e593dfa2edd15?d=identicon&s=25 DEBAUN, STEVE [AG-Contractor/2400] (Guest)
on 2006-05-26 01:32
(Received via mailing list)
text = shape.send(p)

essentially calls a method named 'p'.  So:

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

sd
This topic is locked and can not be replied to.