Skip to content

Commit 4fabe43

Browse files
committed
Clarify that can is sometimes a valid verb for predicate names
1 parent dd6d129 commit 4fabe43

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Diff for: README.adoc

+3-1
Original file line numberDiff line numberDiff line change
@@ -1047,9 +1047,11 @@ end
10471047

10481048
=== Predicate Methods Prefix [[bool-methods-prefix]]
10491049

1050-
Avoid prefixing predicate methods with the auxiliary verbs such as `is`, `does`, or `can`.
1050+
Avoid prefixing predicate methods with the auxiliary verbs such as `is`, `has` or `does`, or `can`.
10511051
These words are redundant and inconsistent with the style of boolean methods in the Ruby core library, such as `empty?` and `include?`.
10521052

1053+
NOTE: `can` should also be avoided when possible, but is also useful when meaning "allowed to".
1054+
10531055
[source,ruby]
10541056
----
10551057
# bad

0 commit comments

Comments
 (0)