lib/inch/code_object/provider/yard/object/base.rb in inch-0.3.1.rc4 vs lib/inch/code_object/provider/yard/object/base.rb in inch-0.3.1.rc5
- old
+ new
@@ -184,24 +184,18 @@
def private?
visibility == :private
end
- # @return [Boolean]
- # +true+ if the object or its parent is tagged as @private
- def private_tag?
- !private_tag.nil?
- end
-
- def private_tag
- @__private_tag
- end
-
def tagged_as_internal_api?
private_api_tag? || docstring.describes_internal_api?
end
+ def tagged_as_private?
+ private_tag? || docstring.describes_private_object?
+ end
+
def protected?
visibility == :protected
end
def public?
@@ -231,9 +225,19 @@
text.scan(/\b(#{Regexp.escape(name)})[^_0-9\!\?]/m).size > 1
end
def original_docstring
object.docstring.all
+ end
+
+ # @return [Boolean]
+ # +true+ if the object or its parent is tagged as @private
+ def private_tag?
+ !private_tag.nil?
+ end
+
+ def private_tag
+ @__private_tag
end
def private_api_tag?
api_tag && api_tag.text == 'private'
end