lib/parameters/class_methods.rb
def get_param(name)
      name = name.to_sym

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

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

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

      raise(Parameters::ParamNotFound,"parameter #{name.to_s.dump} was not found in class #{self}")
    end
Searches for the class parameter with the matching name.

 @param [Symbol, String] name
   The class parameter name to search for.

 @return [ClassParam]
   The class parameter with the matching name.

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

 @api semipublic