Re: [Pharo-users] Calling an arbitrary method

2014-05-26 Thread Sean P. DeNigris
camille teruel wrote > "instance perform: filterMethod asSymbol" "instance perform: filterMessage asSymbol" ;) - Cheers, Sean -- View this message in context: http://forum.world.st/Calling-an-arbitrary-method-tp4760058p4760380.html Sent from the Pharo Smalltalk Users mailing list archive a

Re: [Pharo-users] Calling an arbitrary method

2014-05-22 Thread Guillermo Polito
Hi! On Thu, May 22, 2014 at 7:46 PM, sergio_101 wrote: > In many cases, an object might have a method (filter, selector, etc) > attached to it so that the object can run the correct method.. > > for instance, an object might have a filterMethod variable with a value > 'filterByArtist'.. > > in r

Re: [Pharo-users] Calling an arbitrary method

2014-05-22 Thread Camille Teruel
On 22 mai 2014, at 19:46, sergio_101 wrote: > In many cases, an object might have a method (filter, selector, etc) attached > to it so that the object can run the correct method.. > > for instance, an object might have a filterMethod variable with a value > 'filterByArtist'.. > > in ruby, i

[Pharo-users] Calling an arbitrary method

2014-05-22 Thread sergio_101
In many cases, an object might have a method (filter, selector, etc) attached to it so that the object can run the correct method.. for instance, an object might have a filterMethod variable with a value 'filterByArtist'.. in ruby, i would do something like: instance.send(filter_method) how wou