From: Arfon Smith Date: 2007-09-29T00:38:44+09:00 Subject: Re: Passing method name to method? Logan Capaldo wrote: > On 9/28/07, Arfon Smith wrote: >> puts "#{object.id}" if object.param == true >> end >> >> puts objects.list_by_param(param) >> >> > I *think* what you are trying to do is > > def list_by_param(param) > puts "#{object_id}" if object.send(param) == true > end > > puts objects.list_by_param(:param) It works! Thanks. So I have to pass a symbol to the method to get this to work? -- Posted via http://www.ruby-forum.com/.