-
Notifications
You must be signed in to change notification settings - Fork 64
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
6868b51
commit f510231
Showing
1 changed file
with
32 additions
and
0 deletions.
There are no files selected for viewing
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
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]) |