Last active
December 10, 2015 00:59
-
-
Save mgonto/4355245 to your computer and use it in GitHub Desktop.
FactoryPal multiple template per class creation
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
//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