Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- NSObject subclass: TestObject
- [
- bar [ ^true ]
- ]
- NSObject subclass: SmalltalkTool [
- foo [
- {'a'. 'b'} do: [
- :char|
- ('a' = char) ifTrue: [^TestObject new]
- ].
- ^TestObject new
- ]
- run [
- self foo.
- ]
- ]
Add Comment
Please, Sign In to add comment