From: Pat Eyler Date: 2001-09-05T03:18:46+09:00 Subject: [ruby-talk:20882] newbie question Hello all, after a rather long series of moves, trips, holidays, and vacations, I've decided to pick up my attempt to learn more about ruby (and refactoring) by translating the first chapter of Martin Fowler's Refactoring book into Ruby. I've managed to get through all of the refactoring, but realized that I'd punted earlier on and never gone back to fix it. I never did translate: public class Movie { public static final int CHILDREN = 2; public static final int REGULAR = 0; public static final int NEW_RELEASE = 1; . . . } into ruby, instead I just used the magic numbers 0, 1, and 2 as needed in methods of other classes and ignored it figuring I would have a blinding flash of the obvious and go back and fix things. As can be expected, the blinding flash never came. Would someone mind enlightening me? thanks, -pate