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