On Mar 30, 2005, at 9:20 AM, Patrick Hurley wrote:

> I have been playing with this myself, your @@one is in Module not in
> Accessor -- try changing your eval to class_eval:
>
> class Module
>   def cattr_accessor( *symbols )
>     symbols.each do |sym|
>         self.class_eval <<EVAL
>           def self.#{sym}()
>             @@#{sym}
>           end
>
>           def self.#{sym}=( value )
>             @@#{sym} = value
>           end
> EVAL
>     end
>   end
> end

Makes sense.  Thank you.

James Edward Gray II