Created
December 30, 2011 13:28
-
-
Save zigorou/1539858 to your computer and use it in GitHub Desktop.
For zentooo
This file contains hidden or 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
| #!/usr/bin/env perl | |
| use strict; | |
| use warnings; | |
| package Test::User; | |
| use Data::RuledFactory::Declare; | |
| factory { | |
| name "Default"; | |
| define "id" => ( Sequence => +{} ); | |
| define "name" => ( StringRandom => +{ data => q|\w{8,10}| } ); | |
| }; | |
| package main; | |
| use Data::Dump qw(dump); | |
| my $default_user = Test::User->build("Default"); | |
| dump($default_user); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment