lib/parameters/class_methods.rb
def params=(values)
      values.each do |name,value|
        if has_param?(name)
          get_param(name).value = case value
                                  when Parameters::ClassParam,
                                       Parameters::InstanceParam
                                    value.value
                                  else
                                    value
                                  end
        end
      end
    end
def params=(values)
      values.each do |name,value|
        if has_param?(name)
          get_param(name).value = case value
                                  when Parameters::ClassParam,
                                       Parameters::InstanceParam
                                    value.value
                                  else
                                    value
                                  end
        end
      end
    end
Sets the values of the class parameters.

 @param [Hash] values
   The names and new values to set the class params to.

 @example
   Test.params = {:x => 5, :y => 2}
   # => {:x=>5, :y=>2}

 @api semipublic