The color methods (e.g. black(), tomato()) don't seem to be accessible
everywhere, particularly in class evaluation:


        class TestingShoes < Shoes
                @@background_color = black
                # This works, however: @@background_color = rgb 0, 0, 0
        end
        
        Shoes.app

This raises:

  Error in /blah blah/lib/shoes.rb line 359
  undefined local variable or method 'black' for Shoes::TestingShoes:Class

This is surprising behavior. The color methods are supposed to be
globally accessible methods. Furthermore, rgb() is accessible where
the color methods are not, so something is different about them.

Sincerely,
Joshua Choi

Reply via email to