Examveda

Which Ruby convention is commonly used for naming methods that modify an object's state?

A. Method names ending with mod

B. Method names starting with modify_

C. Method names starting with set_

D. Method names ending with !

Answer: Option D


Join The Discussion

Related Questions on Best Practices and Code Conventions in Ruby