-
Notifications
You must be signed in to change notification settings - Fork 0
Precondition
KuSpa edited this page Feb 16, 2018
·
1 revision
A Precondition is the part of a Contract, which defines the correct parameter for a proper method execution. A Precondition is a Block with the arguments as parameter. A Precondition is stored in its Contract.
Object>>workWith: aString
[:args | |param|
param := args first.
param assert: param isString]