lib/inch/language/ruby/provider/yard/object/base.rb in inch-0.6.3 vs lib/inch/language/ruby/provider/yard/object/base.rb in inch-0.6.4
- old
+ new
@@ -256,10 +256,10 @@
end
protected
def multi_code_examples?(text)
- text.scan(/\b(#{Regexp.escape(name)})[^_0-9\!\?]/m).size > 1
+ text.to_s.scan(/\b(#{Regexp.escape(name)})[^_0-9\!\?]/m).size > 1
end
# @return [Boolean]
# +true+ if the object or its parent is tagged as @private
def private_tag?