lib/inch/code_object/provider/yard/object/base.rb in inch-0.4.1 vs lib/inch/code_object/provider/yard/object/base.rb in inch-0.4.2
- old
+ new
@@ -173,10 +173,15 @@
# @return [Boolean] +true+ if the object represents a namespace
def namespace?
false
end
+ # @return [String] the documentation comments
+ def original_docstring
+ object.docstring.all.to_s
+ end
+
def parameters
[]
end
# @return [Array,nil] the parent of the current object or +nil+
@@ -227,14 +232,9 @@
protected
def multi_code_examples?(text)
text.scan(/\b(#{Regexp.escape(name)})[^_0-9\!\?]/m).size > 1
- end
-
- # @return [String] the documentation comments
- def original_docstring
- object.docstring.all.to_s
end
# @return [Boolean]
# +true+ if the object or its parent is tagged as @private
def private_tag?