lib/inch/code_object/proxy/base.rb in inch-0.2.1 vs lib/inch/code_object/proxy/base.rb in inch-0.2.2

- old
+ new

@@ -29,13 +29,17 @@ def initialize(object) self.object = object end def api_tag? - !object.tag(:api).nil? || (parent && parent.api_tag?) + !api_tag.nil? end + def api_tag + object.tag(:api) || (parent && parent.api_tag) + end + # To be overridden # @see Proxy::NamespaceObject # @return [Array,nil] the children of the current object or +nil+ def children nil @@ -146,11 +150,10 @@ def private_tag? !object.tag(:private).nil? || (parent && parent.private_tag?) end def private_api_tag? - tag = object.tag(:api) - tag && tag.text == 'private' + api_tag && api_tag.text == 'private' end def protected? visibility == :protected end