Skip to content

Commit 8620cdf

Browse files
authored
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
1 parent b2d3ba4 commit 8620cdf

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

General/Pragmas.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,10 @@ Pragma allNamed: #applicationParameterOptional: from: MyConfiguration to: MyAbst
102102

103103
### Collect pragmas in the image
104104

105-
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.
105+
You can also use the Pragma class to collect pramgas in the entire image by using:
106+
- `allNamed: aSymbol `
107+
108+
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.
106109

107110
To configure the PragmaCollector we need to send implement a filter block. If we want to collect the `primitive:` pragmas:
108111

0 commit comments

Comments
 (0)