Created
March 16, 2013 13:28
-
-
Save tgck/5176372 to your computer and use it in GitHub Desktop.
やりたいメソッドがどのクラスに含まれてるか調べるコード片@smalltalk
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"名前に'something'を含むメソッドを取得する" | |
Object withAllSubclasses do: | |
[:clas | clas selectors do: | |
[:sel | | |
(sel asLowercase | |
includesSubString: 'something' ) | |
ifTrue: [ | |
Transcript | |
show: clas name; | |
show: ' '; | |
show: sel; | |
cr]]]. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment