4 ms·
Not that Dir, I mean as in .methods/.instance_methods (or dir(instance) in python ) I fixed it in my original comment
by raverbashing 6y ago
Not that Dir, I mean as in .methods/.instance_methods (or dir(instance) in python )
I fixed it in my original comment
- jeltz 6y agoThen I understand your complaint even less. I almost never sort the output from methods and I do not think I have ever sorted the output from instance_methods during my over 10 years as a Ruby developer.
- raverbashing 6y agoPython orders it. And when you want to look up a method by name you do a binary search by fact of being a sorted list
- fomine3 6y agoAnyway you can just .sort