@@ -100,7 +100,8 @@ atm.canWithdraw(165) // Cannot withdraw because ATM doesn't has bill with value
100
100
atm. canWithdraw ( 30 ) // Can withdraw - 1x20, 2x10
101
101
/*:
102
102
>**Further Examples:** [Design Patterns in Swift](https://github.com/kingreza/Swift-Chain-Of-Responsibility)
103
- *//*:
103
+ */
104
+ /*:
104
105
👫 Command
105
106
----------
106
107
@@ -253,7 +254,8 @@ intContext.assign(c, value: 3)
253
254
var result = expression? . evaluate ( intContext)
254
255
/*:
255
256
>**Further Examples:** [Design Patterns in Swift](https://github.com/kingreza/Swift-Interpreter)
256
- *//*:
257
+ */
258
+ /*:
257
259
🍫 Iterator
258
260
-----------
259
261
@@ -347,7 +349,8 @@ messagesMediator.addColleague(user1)
347
349
user0. send ( " Hello " ) // user1 receives message
348
350
/*:
349
351
>**Further Examples:** [Design Patterns in Swift](https://github.com/kingreza/Swift-Mediator)
350
- *//*:
352
+ */
353
+ /*:
351
354
💾 Memento
352
355
----------
353
356
@@ -466,7 +469,8 @@ testChambers.observer = observerInstance
466
469
testChambers. testChamberNumber++
467
470
/*:
468
471
>**Further Examples:** [Design Patterns in Swift](https://github.com/kingreza/Swift-Observer)
469
- *//*:
472
+ */
473
+ /*:
470
474
🐉 State
471
475
---------
472
476
@@ -527,7 +531,8 @@ context.changeStateToUnauthorized()
527
531
( context. isAuthorized, context. userId)
528
532
/*:
529
533
>**Further Examples:** [Design Patterns in Swift](https://github.com/kingreza/Swift-State)
530
- *//*:
534
+ */
535
+ /*:
531
536
💡 Strategy
532
537
-----------
533
538
@@ -573,7 +578,8 @@ var upper = Printer(strategy:UpperCaseStrategy())
573
578
upper. printString ( " O tempora, o mores! " )
574
579
/*:
575
580
>**Further Examples:** [Design Patterns in Swift](https://github.com/kingreza/Swift-Strategy)
576
- *//*:
581
+ */
582
+ /*:
577
583
🏃 Visitor
578
584
----------
579
585
0 commit comments