Wow. What a great book for any rails developer, specially if you are constantly refactoring code in ruby
The authors behind well known ruby gems as paperclip, voltage, shoulda, factorygirl, etc. made a great work in writing this book.
The first part describes many of the most common code smells in ruby, as duplicated code, large class, large method, shotgun surgery, etc, with a brief way on how to approach these.
The second part details the solutions started on the first part: Replace Conditional with Polymorphism, replace conditional with null object, extract value object, extract validator. etc
The third party describes the most important principles when developing in ruby/rails. Law Of Demeter, DRY, Composition over inheritance, Open/Closed are always perfectly summarised.
The whole book is of course full of examples illustrating each of the chapters.
A must read.