Examveda

Which Ruby convention is commonly used for naming predicate methods that return a boolean value?

A. Method names starting with get_

B. Method names ending with ?

C. Method names ending with bool

D. None of the above

Answer: Option B


Join The Discussion

Related Questions on Best Practices and Code Conventions in Ruby