Created
June 17, 2020 18:28
-
-
Save KevinGutowski/2d9d28cb14583c84b831a5923cd79485 to your computer and use it in GitHub Desktop.
Internal API Inspection
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
function dump_obj(obj){ | |
log("#####################################################################################") | |
log("## Dumping object " + obj ) | |
log("## obj class is: " + [obj className]) | |
log("#####################################################################################") | |
log("obj.properties:") | |
log("#####################################################################################") | |
log([obj class].mocha().properties()) | |
log("obj.propertiesWithAncestors:") | |
log([obj class].mocha().propertiesWithAncestors()) | |
log("#####################################################################################") | |
log("obj.classMethods:") | |
log("#####################################################################################") | |
log([obj class].mocha().classMethods()) | |
log("obj.classMethodsWithAncestors:") | |
log([obj class].mocha().classMethodsWithAncestors()) | |
log("#####################################################################################") | |
log("obj.instanceMethods:") | |
log("#####################################################################################") | |
log([obj class].mocha().instanceMethods()) | |
log("obj.instanceMethodsWithAncestors:") | |
log([obj class].mocha().instanceMethodsWithAncestors()) | |
log("#####################################################################################") | |
log("obj.protocols:") | |
log("#####################################################################################") | |
log([obj class].mocha().protocols()) | |
log("obj.protocolsWithAncestors:") | |
log([obj class].mocha().protocolsWithAncestors()) | |
log("#####################################################################################") | |
log("obj.treeAsDictionary():") | |
log("#####################################################################################") | |
log(obj.treeAsDictionary()) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
From Ale at: https://sketchplugins.com/d/1743-how-to-see-available-functions-of-an-object/2