Rob Biedenharn wrote: > On Jul 5, 2007, at 3:12 PM, Jean Nibee wrote: >> >> Thanks. > > I think you've answered your own question, but you might not > understand why. The ruby interpreter is "executing" each line within > the class definition as it is encountered. If there's no > PAYMENT_TYPES when the validates_inclusion_of line is reached, it > really doesn't matter that it *does* appear later in the class > definition. > > -Rob > > Rob Biedenharn http://agileconsultingllc.com > Rob / AgileConsultingLLC.com Doh.. Sorry I"m still in 'vm' world w/ my Java code thinking that a Ruby class is ONLY a definition, I forget to realize it's being interpreted as it's being read. Thanks for the wake up. -- Posted via http://www.ruby-forum.com/.