This method constructs a KilmerFactory instance, which can be used to build
Kilmer-style template classes. The style_attributes argument is a
Hash that contains the values of the classes
attributes (Symbols mapped to Strings).
Parameters:
style_attributes
A Hash describing the appearance of the
Kilmer-style.
# File lib/rdoc/generator/html/kilmerfactory.rb, line 76
def initialize(style_attributes)
@central_css = style_attributes[:central_css]
if(!@central_css)
raise ArgumentError, "did not specify a value for :central_css"
end
@index_css = style_attributes[:index_css]
if(!@index_css)
raise ArgumentError, "did not specify a value for :index_css"
end
@method_list_heading = style_attributes[:method_list_heading]
if(!@method_list_heading)
@method_list_heading = "Methods"
end
@class_and_module_list_heading = style_attributes[:class_and_module_list_heading]
if(!@class_and_module_list_heading)
@class_and_module_list_heading = "Classes and Modules"
end
@attribute_list_heading = style_attributes[:attribute_list_heading]
if(!@attribute_list_heading)
@attribute_list_heading = "Attributes"
end
end