Class: Inch::Language::Ruby::Evaluation::Role::Missing
- Inherits:
-
Base
- Object
- Evaluation::Role
- Base
- Inch::Language::Ruby::Evaluation::Role::Missing
- Defined in:
- lib/inch/language/ruby/roles/missing.rb
Overview
Missing is the base class for things that can be improved in the doc
Direct Known Subclasses
Inch::Language::Ruby::Evaluation::Role::Method::WithoutReturnDescription, Inch::Language::Ruby::Evaluation::Role::Method::WithoutReturnType, Inch::Language::Ruby::Evaluation::Role::MethodParameter::WithoutMention, Inch::Language::Ruby::Evaluation::Role::MethodParameter::WithoutType, Object::WithoutCodeExample, Object::WithoutDoc
Instance Attribute Summary
Attributes inherited from Evaluation::Role
Instance Method Summary collapse
-
#potential_score ⇒ Fixnum
A score that can be achieved by adding the missing thing mentioned by the role.
- #score ⇒ Object
Methods inherited from Base
Methods inherited from Evaluation::Role
applicable?, applicable_if, applicable_unless, #initialize, #max_score, #min_score, #object_type, #priority, priority, #suggestion
Constructor Details
This class inherits a constructor from Inch::Evaluation::Role
Instance Method Details
#potential_score ⇒ Fixnum
Returns a score that can be achieved by adding the missing thing mentioned by the role.
16 17 18 |
# File 'lib/inch/language/ruby/roles/missing.rb', line 16 def potential_score @value.to_i end |
#score ⇒ Object
9 10 11 |
# File 'lib/inch/language/ruby/roles/missing.rb', line 9 def score nil end |