aidy wrote: > irb(main):001:0> def aidy > irb(main):002:1> FIREFOX_CLASS = "[CLASS:MozillaUIWindowClass]" > irb(main):003:1> end > SyntaxError: compile error > (irb):2: dynamic constant assignment > FIREFOX_CLASS = "[CLASS:MozillaUIWindowClass]" The purpose of a constant is to configure two or more methods with the same invariable value. Within one method, there's no difference between assigning a putative local constant, and simply assigning a variable - then not varying it. Ruby expects to assign constants only once. If you called aidy() twice, the constant would re-assign, and it therefor would not be constant. Put these rules together, and Ruby can only enforce its constant concept if you can't write them locally. -- Phlip