Created
July 19, 2016 12:02
-
-
Save getflourish/1f4d898fdcc361ea3ee4e3ea295cd01a to your computer and use it in GitHub Desktop.
Sketch Dump
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
function dump (obj) { | |
log("#####################################################################################") | |
log("## Dumping object " + obj ) | |
log("## obj class is: " + [obj className]) | |
log("#####################################################################################") | |
log("obj.properties:") | |
log([obj class].mocha().properties()) | |
log("obj.propertiesWithAncestors:") | |
log([obj class].mocha().propertiesWithAncestors()) | |
log("obj.classMethods:") | |
log([obj class].mocha().classMethods()) | |
log("obj.classMethodsWithAncestors:") | |
log([obj class].mocha().classMethodsWithAncestors()) | |
log("obj.instanceMethods:") | |
log([obj class].mocha().instanceMethods()) | |
log("obj.instanceMethodsWithAncestors:") | |
log([obj class].mocha().instanceMethodsWithAncestors()) | |
log("obj.protocols:") | |
log([obj class].mocha().protocols()) | |
log("obj.protocolsWithAncestors:") | |
log([obj class].mocha().protocolsWithAncestors()) | |
log("obj.treeAsDictionary():") | |
log(obj.treeAsDictionary()) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment