Thomas Sawyer wrote:
> Otherwise, probably nothing to worry about. You can't clobber a
> constant by using include if it already exists.
> 
>   >> module A
>   >>   module B
>   >>     def self.b; "B"; end
>   >>     def self.q; "Q"; end
>   >>   end
>   >> end
>   => nil
>   >> module B
>   >>   def self.b; "B!"; end
>   >> end
>   => nil
>   >> B.b
>   => "B!"
>   >> include A
>   => Object
>   >> B.b
>   => "B!"
>   >> B.q
>   NoMethodError: undefined method `q' for B:Module


That's good to know. It just feel a little messy having all the
internals exposed =b
-- 
Posted via http://www.ruby-forum.com/.