1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
module Campaign is entity Campaign is identity a -> CampaignId b -> xsd:string is assert not_null = "self is not null" end c -> Target is assert tagged_with_foo is ∀ self, self.tags.contains("foo") end end end end