lib/inch/language/ruby/provider/yard/object/method_parameter_object.rb in inch-0.5.0.rc5 vs lib/inch/language/ruby/provider/yard/object/method_parameter_object.rb in inch-0.5.0.rc6
- old
+ new
@@ -39,11 +39,12 @@
# @return [Boolean] +true+ if an additional description given?
def described?
described_by_tag? || described_by_docstring?
end
- # @return [Boolean] +true+ if the parameter is mentioned in the docs
+ # @return [Boolean] +true+ if the parameter is mentioned in the
+ # docs
def mentioned?
!!@tag || mentioned_by_docstring?
end
# @return [Boolean] +true+ if the parameter is a splat argument
@@ -70,19 +71,19 @@
def described_by_docstring?
if @method.docstring.describes_parameter?(name)
true
else
- unsplatted = name.gsub(/^[\&\*]/, "")
+ unsplatted = name.gsub(/^[\&\*]/, '')
@method.docstring.describes_parameter?(unsplatted)
end
end
def mentioned_by_docstring?
if @method.docstring.mentions_parameter?(name)
true
else
- unsplatted = name.gsub(/^[\&\*]/, "")
+ unsplatted = name.gsub(/^[\&\*]/, '')
@method.docstring.mentions_parameter?(unsplatted)
end
end
end
end