[Pharo] Personal fitness tracker web app.
1
"
2
I represent exactly 2 working sets to be performed with as little rest as possible between them, to pre-exhaust a muscle group.
3
"
4
Class {
5
#name : 'MFTPreExhaustSupersetGroupPrescription',
6
#superclass : 'MFTSetGroupPrescription',
7
#category : 'MyFitnessTracker-Core-Prescription',
8
#package : 'MyFitnessTracker-Core',
9
#tag : 'Prescription'
10
}
11
12
{ #category : 'instance creation' }
13
MFTPreExhaustSupersetGroupPrescription 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
MFTPreExhaustSupersetGroupPrescription >> canonicalName [
24
25
^ 'pre-exhaust superset'
26
]
27
28
{ #category : 'validation' }
29
MFTPreExhaustSupersetGroupPrescription >> validate [
30
31
sets size = 2 ifFalse: [
32
self error: 'Pre-exhaust superset must have exactly 2 sets.' ]
33
]
34