Created
December 1, 2009 01:07
-
-
Save duairc/245960 to your computer and use it in GitHub Desktop.
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
factory :ShoppingAssistant do | |
creating :ShoppingList | |
subtypes :SinglePerson, :Couple, :RetiredCouple | |
creators :Weekday, :Weekend, :SummerHoliday, :WinterHoliday | |
end | |
data :SinglePerson do | |
Weekday "Sandwich" | |
Weekend "Pizza" | |
SummerHoliday "Sangria" | |
WinterHoliday "Shades" | |
end | |
data :Couple do | |
Weekday "Baby food" | |
Weekend "Turkey" | |
SummerHoliday "Sun protection" | |
WinterHoliday "Gloves" | |
end | |
data :RetiredCouple do | |
Weekday "Fruit" | |
Weekend "Roast" | |
SummerHoliday "Hat" | |
WinterHoliday "Scarf" | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment