Last active
September 15, 2015 01:51
-
-
Save jakecoffman/696de75ca1f8cae70ef2 to your computer and use it in GitHub Desktop.
same as visitor.groovy without the confusing class explosion
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
def printer(Element1 element) { | |
println "${element.name} ${element.element1Specific}" | |
} | |
def printer(Element2 element) { | |
println "${element.name} ${element.element2Specific}" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment