From c1ce667a01c256d549b5266cdb25028f88964271 Mon Sep 17 00:00:00 2001 From: Daniel Vandersluis Date: Tue, 25 Mar 2025 10:54:53 -0400 Subject: [PATCH] Clarify that `can` is sometimes a valid verb for predicate names --- README.adoc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/README.adoc b/README.adoc index a0a6904b..103824c4 100644 --- a/README.adoc +++ b/README.adoc @@ -1047,9 +1047,11 @@ end === Predicate Methods Prefix [[bool-methods-prefix]] -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`. These words are redundant and inconsistent with the style of boolean methods in the Ruby core library, such as `empty?` and `include?`. +NOTE: `can` should also be avoided when possible, but is also useful when meaning "allowed to". + [source,ruby] ---- # bad