Class: Inch::Evaluation::Role::Method::Overridden
- Defined in:
- lib/inch/evaluation/role/method.rb
Overview
Role assigned to methods that are overriding another method
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
-
#min_score ⇒ Object
This role sets a min_score.
-
#priority ⇒ Object
It seems more important to document the overridden method, than the overriding one.
-
#score ⇒ Object
This role doesnot assign a score.
Methods inherited from Base
#initialize, #max_score, #object_type, #potential_score, #suggestion
Constructor Details
This class inherits a constructor from Inch::Evaluation::Role::Base
Instance Method Details
#min_score ⇒ Object
This role sets a min_score.
89 90 91 |
# File 'lib/inch/evaluation/role/method.rb', line 89 def min_score @value.to_f end |
#priority ⇒ Object
It seems more important to document the overridden method, than the overriding one
79 80 81 |
# File 'lib/inch/evaluation/role/method.rb', line 79 def priority -2 end |
#score ⇒ Object
This role doesnot assign a score.
84 85 86 |
# File 'lib/inch/evaluation/role/method.rb', line 84 def score nil end |