lib/inch/language/javascript/roles/object.rb in inch-0.7.1 vs lib/inch/language/javascript/roles/object.rb in inch-0.8.0.rc1
- old
+ new
@@ -22,43 +22,43 @@
# Tagged means tagged in an unconsidred way, i.e. YARD tags not
# considered by Inch. Since these tags are parsed from the docstring
# the object seems undocumented to Inch.
class Tagged < Base
applicable_if :has_unconsidered_tags?
- priority -1
+ priority(-1)
end
# Role assigned to objects explicitly or implicitly tagged not to be
# documented.
#
# @see CodeObject::NodocHelper
class TaggedAsNodoc < Base
applicable_if :nodoc?
- priority -7
+ priority(-7)
end
# Role assigned to objects declared in the top-level namespace
class InRoot < Base
applicable_if :in_root?
- priority 0
+ priority(0)
end
# Role assigned to public objects
class Public < Base
applicable_if :public?
- priority 0
+ priority(0)
end
# Role assigned to protected objects
class Protected < Base
applicable_if :protected?
- priority -1
+ priority(-1)
end
# Role assigned to private objects
class Private < Base
applicable_if :private?
- priority -4
+ priority(-4)
end
# Role assigned to objects with a single code example
class WithCodeExample < Base
applicable_if do |o|