lib/inch/language/ruby/roles/method_parameter.rb in inch-0.7.1 vs lib/inch/language/ruby/roles/method_parameter.rb in inch-0.8.0.rc1

- old
+ new

@@ -42,28 +42,28 @@ # Role assigned to parameters that are spalts, e.g. +*args+ # # @see CodeObject::Ruby::MethodParameterObject#splat? class Splat < Base applicable_if :splat? - priority +1 + priority(1) end # Role assigned to parameters that are blocks, e.g. +&block+ # # @see CodeObject::Ruby::MethodParameterObject#block? class Block < Base applicable_if :block? - priority +1 + priority(1) end # Role assigned to parameters that are documented, but not part of # the method signature # # @see CodeObject::Ruby::MethodParameterObject#wrongly_mentioned? class WithWrongMention < Base applicable_if :wrongly_mentioned? - priority +1 + priority(1) def suggestion "The parameter '#{object.name}' seems not to be part of the " \ 'signature.' end @@ -72,10 +72,10 @@ # Role assigned to parameters that have a 'bad' name # # @see CodeObject::Ruby::MethodParameterObject#bad_name? class WithBadName < Base applicable_if :bad_name? - priority +1 + priority(1) end end end end end