Class: Inch::Language::Ruby::Evaluation::Role::MethodParameter::WithWrongMention

Inherits:
Base
  • Object
show all
Defined in:
lib/inch/language/ruby/roles/method_parameter.rb

Overview

Role assigned to parameters that are documented, but not part of the method signature

See Also:

  • CodeObject::Ruby::MethodParameterObject#wrongly_mentioned?

Instance Attribute Summary

Attributes inherited from Evaluation::Role

#object

Instance Method Summary collapse

Methods inherited from Base

#object_type

Methods inherited from Evaluation::Role

applicable?, applicable_if, applicable_unless, #initialize, #max_score, #min_score, #object_type, #potential_score, priority, #priority, #score

Constructor Details

This class inherits a constructor from Inch::Evaluation::Role

Instance Method Details

#suggestionObject



66
67
68
69
# File 'lib/inch/language/ruby/roles/method_parameter.rb', line 66

def suggestion
  "The parameter '#{object.name}' seems not to be part of the " \
    'signature.'
end