Skip to content

Instantly share code, notes, and snippets.

@mgonto
Last active December 10, 2015 00:59
Show Gist options
  • Save mgonto/4355245 to your computer and use it in GitHub Desktop.
Save mgonto/4355245 to your computer and use it in GitHub Desktop.
FactoryPal multiple template per class creation
//Create a person from default template
val person = FactoryPal.create[Person]
//Creating a Person for cool template
val person = FactoryPal.create[Person](Some('coolPerson))()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment