def setting(name, default=nil)
      RConfig.class_eval <<-EOC, __FILE__, __LINE__ + 1
        def self.#{name}
          @@#{name}
        end
        def self.#{name}=(val)
          @@#{name} = val
        end
      EOC

      RConfig.send(:"#{name}=", default)
    end
def setting(name, default=nil)
      RConfig.class_eval <<-EOC, __FILE__, __LINE__ + 1
        def self.#{name}
          @@#{name}
        end
        def self.#{name}=(val)
          @@#{name} = val
        end
      EOC

      RConfig.send(:"#{name}=", default)
    end
Creates a class variable a sets it to the default value specified.