Skip to content

Instantly share code, notes, and snippets.

@wandernauta
Created August 18, 2010 12:28
Show Gist options
  • Save wandernauta/534537 to your computer and use it in GitHub Desktop.
Save wandernauta/534537 to your computer and use it in GitHub Desktop.
Animal:
- name: String
- age: Int
- isPet: Bool
- owner: Ref(Human)
Human:
- name: String
- age: Int
- parent: Ref(Human)
import models
fred := Animal new()
fred name = "Freddy"
fred isPet = true
fred owner = Human new("Rabbitmeister", 32)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment