String perform: #method

On Sun, Jan 13, 2019, 18:42 Sven Van Caekenberghe <[email protected] wrote:

> Hi,
>
> Does there exist a shortcut for programmatically executing a class side
> method ?
>
> For example,
>
> String class>>#loremIpsum in: [ :method |
>   method methodClass instanceSide perform: method selector ].
>
> I was looking for a shortcut, like #eval, #execute, #value or something
> like that.
>
> (String class>>#loremIpsum) eval.
>
> Sven
>

Reply via email to