lib/inch/language/ruby/code_object/method_object.rb in inch-0.6.0.rc5 vs lib/inch/language/ruby/code_object/method_object.rb in inch-0.6.0.rc6

- old
+ new

@@ -14,10 +14,14 @@ def getter? self[:getter?] end + def has_doc? + super || mentioned_in_parent_docstring? + end + def has_parameters? !parameters.empty? end MANY_PARAMETERS_THRESHOLD = 3 @@ -73,12 +77,23 @@ def source self[:source?] end + def undocumented? + super && !mentioned_in_parent_docstring? + end + def questioning_name? self[:questioning_name?] end + + private + + def mentioned_in_parent_docstring? + parent && parent.has_doc_for?(name) + end + end end end end end