def get_sections
            symbolize! @rules
            raise "[body] section on YAML file is needed to generate the report." if @rules[:body].nil?
            @sections = {:page => @rules[:page], :body => @rules[:body], :defaults => @rules[:defaults], :groups => {}}
            @sections[:body][:settings][:groups].each { |group|  @sections[:groups][group.to_sym] = @rules[group.to_sym] } if has_groups?
        end
def get_sections
            symbolize! @rules
            raise "[body] section on YAML file is needed to generate the report." if @rules[:body].nil?
            @sections = {:page => @rules[:page], :body => @rules[:body], :defaults => @rules[:defaults], :groups => {}}
            @sections[:body][:settings][:groups].each { |group|  @sections[:groups][group.to_sym] = @rules[group.to_sym] } if has_groups?
        end
Convert the structure of the rules to facilitate the generating proccess.