>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



-----
cheers, 
Sanjay
--
Sent from: http://forum.world.st/Pharo-Smalltalk-Users-f1310670.html

Reply via email to