---
title: 'Ruby Science: Extracting and Using Classes'
teaser:
tags: web,ruby,good code
author: Joe Ferris
published_on: 2013-02-22
---

Today's release of [Ruby Science](http://rubyscience.com?utm_source=giantrobots&utm_medium=blog&utm_campaign=newchapters)
includes three new chapters. If you're already reading Ruby Science, make sure
to grab the [latest version](https://github.com/thoughtbot/ruby-science/tree/master/release).

This week's updates include tips on safely extracting classes, as well as a
specific example of extracting Value Objects. In addition, we discuss how you
can use Ruby's classes-as-objects attitude to eliminate the need for most
abstract factory classes.

The book is a work in progress, and currently contains around 123 pages of
content. A $49 purchase gets you access to the current release of the book, all
future updates, and the companion example application. In addition, purchasers
have the ability to send thoughtbot their toughest Ruby, Rails, and refactoring
questions.

[Get your copy of Ruby Science today.](http://rubyscience.com?utm_source=giantrobots&utm_medium=blog&utm_campaign=newchapters)
