Skip to content

Commit

Permalink
Merge pull request #44 from iankronquist/defined-types-mismatched-types
Browse files Browse the repository at this point in the history
(PDOC-21) Check mismatched types in defined types
  • Loading branch information
HAIL9000 committed Aug 3, 2015
2 parents b1b27a3 + c7af917 commit c33f911
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,12 @@ def init

@template_helper = TemplateHelper.new
@html_helper = HTMLHelper.new
@template_helper.check_parameters_match_docs object
params = object.parameters.map { |param| param.first }
param_tags = object.tags.find_all{ |tag| tag.tag_name == "param"}
param_details = @template_helper.extract_param_details(params, param_tags) unless params.nil?
@template_helper.check_types_match_docs object, param_details

end

def parameter_details
Expand All @@ -19,7 +25,6 @@ def parameter_details
@param_details = []

@param_details = @template_helper.extract_param_details(params, param_tags, true)
@template_helper.check_parameters_match_docs object

erb(:parameter_details)
end
Expand Down

0 comments on commit c33f911

Please # to comment.