From 58a6eb928e36487be9c89519363e128fa5737d4c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phaneDucasse?= Date: Tue, 11 Jun 2024 10:18:24 +0200 Subject: [PATCH] adding pane --- Chapters/MemoryGameModel.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/Chapters/MemoryGameModel.md b/Chapters/MemoryGameModel.md index fe4cdd0..600da4e 100644 --- a/Chapters/MemoryGameModel.md +++ b/Chapters/MemoryGameModel.md @@ -116,6 +116,18 @@ MGCard >> printOn: aStream nextPut: $) ``` +In addition, we can extend the inspector to display information in the inspector. + + +``` +MGCard >> inspectCard: aBuilder + + | builder | + builder := StSimpleInspectorBuilder on: aBuilder. + builder key: 'card:' value: self symbol. + ^ builder table +``` + ### Reviewing the game model