lib/inch/language/ruby/code_object/base.rb in inch-0.6.0.rc5 vs lib/inch/language/ruby/code_object/base.rb in inch-0.6.0.rc6
- old
+ new
@@ -106,9 +106,15 @@
def has_doc?
self[:has_doc?]
end
+ # @return [Boolean] +true+ if the docstring mentions a given
+ # +member_name+.
+ def has_doc_for?(member_name)
+ docstring.mentions_member?(member_name)
+ end
+
def has_multiple_code_examples?
self[:has_multiple_code_examples?]
end
def has_unconsidered_tags?