We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
can
1 parent dd6d129 commit c1ce667Copy full SHA for c1ce667
README.adoc
@@ -1047,9 +1047,11 @@ end
1047
1048
=== Predicate Methods Prefix [[bool-methods-prefix]]
1049
1050
-Avoid prefixing predicate methods with the auxiliary verbs such as `is`, `does`, or `can`.
+Avoid prefixing predicate methods with the auxiliary verbs such as `is`, `has` or `does`.
1051
These words are redundant and inconsistent with the style of boolean methods in the Ruby core library, such as `empty?` and `include?`.
1052
1053
+NOTE: `can` should also be avoided when possible, but is also useful when meaning "allowed to".
1054
+
1055
[source,ruby]
1056
----
1057
# bad
0 commit comments