Skip to content

Commit 064b76c

Browse files
committed
Add a section about predicates to PROJECT_RULES.md
1 parent 7117903 commit 064b76c

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

PROJECT_RULES.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,12 @@ Any release can change the private interface, including patch releases.
6767
underscores is to flag end-users and tooling that this method does not
6868
belong to the public end-users interface.
6969

70+
## Predicates
71+
72+
It is OK for predicates to return objects different than `true` and `false` if
73+
other choices make sense from a pragmatic point of view. Please, check the
74+
method `Zeitwerk::Registry.conflicting_root_directory?` for an example.
75+
7076
## Documentation
7177

7278
Try to word the documentation in terms of classes, modules, and namespaces. Do that with extra care to avoid introducing leaky metaphors.

0 commit comments

Comments
 (0)