Skip to content

Commit

Permalink
NEW: instrospect selected object
Browse files Browse the repository at this point in the history
  • Loading branch information
bomberstudios committed May 27, 2014
1 parent 6868b51 commit f510231
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions Dump Selected Object.sketchplugin
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
// Dump Object
function dump_obj(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())
}

dump_obj(selection[0])

0 comments on commit f510231

Please sign in to comment.