lib/inch/language/javascript/roles/object.rb in inch-0.6.0.rc1 vs lib/inch/language/javascript/roles/object.rb in inch-0.6.0.rc2

- old
+ new

@@ -46,9 +46,21 @@ class Public < Base applicable_if :public? priority 0 end + # Role assigned to protected objects + class Protected < Base + applicable_if :protected? + priority -1 + end + + # Role assigned to private objects + class Private < Base + applicable_if :private? + priority -4 + end + # Role assigned to objects with a single code example class WithCodeExample < Base applicable_if do |o| o.has_code_example? && !o.has_multiple_code_examples? end