probably a mistake :( send a PR when you find the solution. 

> On 26 Jan 2021, at 10:31, Sanjay Minni <s...@planage.com> wrote:
> 
> 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

--------------------------------------------
Stéphane Ducasse
http://stephane.ducasse.free.fr / http://www.pharo.org 
03 59 35 87 52
Assistant: Aurore Dalle 
FAX 03 59 57 78 50
TEL 03 59 35 86 16
S. Ducasse - Inria
40, avenue Halley, 
Parc Scientifique de la Haute Borne, Bât.A, Park Plaza
Villeneuve d'Ascq 59650
France

Reply via email to