lib/parameters/class_methods.rb
def set_param(name,value)
      name = name.to_sym

      ancestors.each do |ancestor|
        if ancestor.included_modules.include?(Parameters)
          if ancestor.params.has_key?(name)
            return ancestor.params[name].set(value)
          end
        end
      end

      raise(Parameters::ParamNotFound,"parameter #{name.to_s.dump} was not found in class #{self}")
    end
def set_param(name,value)
      name = name.to_sym

      ancestors.each do |ancestor|
        if ancestor.included_modules.include?(Parameters)
          if ancestor.params.has_key?(name)
            return ancestor.params[name].set(value)
          end
        end
      end

      raise(Parameters::ParamNotFound,"parameter #{name.to_s.dump} was not found in class #{self}")
    end
Sets a class parameter.

 @param [Symbol, String] name
   The name of the class parameter.

 @param [Object] value
   The new value for the class parameter.

 @return [Object]
   The new value of the class parameter.

 @raise [ParamNotfound]
   No class parameter with the specified name could be found.

 @since 0.3.0

 @api semipublic