From: James Britt Date: 2008-03-04T08:44:04+09:00 Subject: Re: Question on the Ruby Programming Language Book Bharat Ruparel wrote: > 1 Why do you have to create enumerated objects this way? This seems a > long way off from Ruby's philosophy of being succint. Just to define a > few "object" constants I have to go through this? > Well, you can add this method: def next INSTANCES[ (@n+1) % 4] end and then do this: season = Season::Autumn puts season puts season.next puts season.next.next -- James Britt "The greatest obstacle to discovery is not ignorance, but the illusion of knowledge." - D. Boorstin