Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update Pragmas.md to reflect new #allNamed: api #353

Merged
merged 1 commit into from
Jun 19, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion General/Pragmas.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:

Expand Down
Loading