Stef's Magritte Tutorial clarity reqd #188
Replies: 1 comment 1 reply
-
got this to work as follows as of now MAAddress >> descriptionContainer "// (i.e. not descriptionEndDate) as in the document" @Ducasse: If you want I can send a PR but I really haven't done it before and I |
Beta Was this translation helpful? Give feedback.
-
From pg 16 of "meta data at work with Magritte - Tutorial", Stef
how are these to be entered since both method codes are in the same object and methodName
MAAddress >> descriptionEndDate
^ MADateDescription new
accessor: #endDate;
label: 'End Date';
addCondition: [ :value | value > Date today ];
beRequired;
yourself
MAAddress >> descriptionEndDate
^ super descriptionContainer
addCondition: [ :object |
(object readUsing: self descriptionEndDate) >
(object readUsing: self descriptionStartDate)]
labelled: 'End date must be after start date';
yourself
Beta Was this translation helpful? Give feedback.
All reactions