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 at
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
On 22 mai 2014, at 19:46, sergio_101 sergio@gmail.com 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'..