cheat sheet groovy
This commit is contained in:
parent
792682ae7b
commit
16a5982451
7
cheat/groovy.md
Normal file
7
cheat/groovy.md
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
# 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/
|
Loading…
Reference in New Issue
Block a user