Skip to content

Instantly share code, notes, and snippets.

@jakecoffman
Last active September 15, 2015 01:51
Show Gist options
  • Save jakecoffman/696de75ca1f8cae70ef2 to your computer and use it in GitHub Desktop.
Save jakecoffman/696de75ca1f8cae70ef2 to your computer and use it in GitHub Desktop.
same as visitor.groovy without the confusing class explosion
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