Contents
A Practical Definition of Design
A Brief Introduction to Object-Oriented Programming
2 Designing Classes with a Single Responsibility
Deciding What Belongs in a Class
Organizing Code to Allow for Easy Changes
Creating Classes That Have a Single Responsibility
An Example Application: Bicycles and Gears
Why Single Responsibility Matters
Get Practical Object-Oriented Design in Ruby: An Agile Primer now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.