Re: Dealing with multiple cases of a string while keeping code short and OOP friendly
Posted by
kilon.alios on
Mar 09, 2015; 9:20pm
URL: https://forum.world.st/Dealing-with-multiple-cases-of-a-string-while-keeping-code-short-and-OOP-friendly-tp4810731p4810783.html
oh Sean this so beautiful and elegant, exactly what I was looking for. Thank you very much.
The rest of your code is what I was thinking doing with regex instead.
This was the part I was not aware of
class := self subclasses detect: [ :c | c pythonClassName = pythonClassName