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
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
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
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