lib/inch/code_object/proxy/method_object.rb in inch-0.1.0 vs lib/inch/code_object/proxy/method_object.rb in inch-0.1.1

- old
+ new

@@ -56,9 +56,17 @@ def return_mentioned? !!return_tag || docstring.mentions_return? end + def return_described? + (return_tag && !return_tag.text.empty?) || docstring.describes_return? + end + + def questioning_name? + name =~ /\?$/ + end + private def all_parameter_names names = signature_parameter_names names.concat parameter_tags.map(&:name)