metabahn/farmer_john — Issue #5: Seed Definitions
Author: bryanp
Created: 2011-10-17 19:26:15+00:00
State: open
Labels: Feature

Definitions can be created that describe values for certain object types. Some examples:

```ruby
# create a default user definition
#
User.define {
:email => lambda { gen_rand_email }
}

# seed a single user from default definition
#
User.seed

# create a named user definition
#
User.define(:bryan) {
:email => 'bryan@metabahn.com'
}

# seed a single user from a particular definition
#
User.seed(:bryan)
```