diff --git a/cheat/groovy.md b/cheat/groovy.md new file mode 100644 index 0000000..c9c9d5a --- /dev/null +++ b/cheat/groovy.md @@ -0,0 +1,7 @@ +# List class methods +`.metaClass.methods*.name.sort().unique()` + +## Example +`println new Person().metaClass.methods*.name.sort().unique()` + +Source http://groovy-almanac.org/list-the-methods-of-a-groovy-class/