Examveda

What is the purpose of the Single Responsibility Principle (SRP) in Ruby programming?

A. Each module should be responsible for only one feature

B. Each class should have only one reason to change

C. Each file should contain only one class

D. None of the above

Answer: Option B


Join The Discussion

Related Questions on Best Practices and Code Conventions in Ruby