[Pharo] Personal fitness tracker web app.
1
"
2
I represent many working sets to be performed with as little rest as possible between them.
3
"
4
Class {
5
#name : 'MFTSupersetGroupPrescription',
6
#superclass : 'MFTSetGroupPrescription',
7
#category : 'MyFitnessTracker-Core-Prescription',
8
#package : 'MyFitnessTracker-Core',
9
#tag : 'Prescription'
10
}
11
12
{ #category : 'instance creation' }
13
MFTSupersetGroupPrescription class >> with: firstSet with: secondSet [
14
15
^ self new
16
sets: (OrderedCollection withAll: {
17
firstSet.
18
secondSet });
19
yourself
20
]
21
22
{ #category : 'initialization' }
23
MFTSupersetGroupPrescription >> canonicalName [
24
25
^ 'superset'
26
]
27
28
{ #category : 'validation' }
29
MFTSupersetGroupPrescription >> validate [
30
31
sets size >= 2 ifFalse: [
32
self error: 'Superset must have at least 2 sets.' ]
33
]
34