What is the naming conventions for methods that return a boolean result?
Answer Posted / Sanjay Singh Barfal
In Ruby, it's common practice to prefix method names with a verb and use camelCase. For methods returning a boolean value, the suffix "_?" can be added to the method name to indicate that it returns a boolean. Examples include `can_login?` or `is_valid?`.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers