Skip to content

Instantly share code, notes, and snippets.

@mark-vieira
Created November 4, 2014 23:07
Show Gist options
  • Save mark-vieira/96d75c07760609b67980 to your computer and use it in GitHub Desktop.
Save mark-vieira/96d75c07760609b67980 to your computer and use it in GitHub Desktop.
project.extensions.create('foo', Foo)
foo {
project = ':project'
}
class Foo {
Project proj
void setProject(Project project) {
println "Project setter: ${project}"
}
void setProject( String project) {
println "String setter: ${project}"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment