Examveda
Examveda

Which naming convention is commonly used for method names in Ruby?

A. Kebab case (e.g., my-method)

B. Snake case (e.g., my_method)

C. Pascal case (e.g., MyMethod)

D. Kebab case (e.g., my-method)

Answer: Option B


Join The Discussion

Related Questions on Best Practices and Code Conventions in Ruby