Created
March 25, 2009 09:07
-
-
Save bragi/85382 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
CallInspector = Origin mimic do( | |
nesting = 0 | |
entering = lecrox( | |
"#{"| " * nesting}+called #{call receiver}:#{call message name}(#{call arguments})" println | |
nesting ++ | |
) | |
leaving = lecrox( | |
nesting -- | |
"#{"| " * nesting}\\returned #{aspectResult asText truncate}" println | |
) | |
instrument = method(+objects, | |
objects each(object, | |
object before(matching: :anyFromSelf) << entering | |
object after(matching: :anyFromSelf) << leaving | |
) | |
) | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment