From 8620cdff3b749f4ba0c76d7ca0f34aef257860af Mon Sep 17 00:00:00 2001 From: Tim Mackinnon Date: Tue, 4 Jun 2024 22:39:05 +0100 Subject: [PATCH] Update Pragmas.md to reflect new #allNamed: api Pragmas now has an #allNamed: method which is the reccomended way to find pragmas in the entire image --- General/Pragmas.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/General/Pragmas.md b/General/Pragmas.md index c0049c7..643e3c1 100644 --- a/General/Pragmas.md +++ b/General/Pragmas.md @@ -102,7 +102,10 @@ Pragma allNamed: #applicationParameterOptional: from: MyConfiguration to: MyAbst ### Collect pragmas in the image -The second way to collect the pragmas to handle them is to use the PragmaCollector. This class can be configured with a query and will return all the pragmas matching the query. +You can also use the Pragma class to collect pramgas in the entire image by using: +- `allNamed: aSymbol ` + +A second, now less reccomended way to collect pragmas, is to use the PragmaCollector. This class can be configured with a query and will return all the pragmas matching the query. To configure the PragmaCollector we need to send implement a filter block. If we want to collect the `primitive:` pragmas: