8 lines
217 B
Markdown
8 lines
217 B
Markdown
|
# List class methods
|
||
|
`<class>.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/
|