Class: Inch::Evaluation::Role::Missing

Inherits:
Base
  • Object
show all
Defined in:
lib/inch/evaluation/role/missing.rb

Overview

Missing is the base class for things that can be improved in the doc

Instance Attribute Summary

Attributes inherited from Base

#object

Instance Method Summary collapse

Methods inherited from Base

applicable?, applicable_if, applicable_unless, #initialize, #max_score, #min_score, #object_type, #priority, #suggestion

Constructor Details

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

Instance Method Details

#potential_scoreFixnum

Returns a score that can be achieved by adding the missing thing mentioned by the role.

Returns:

  • (Fixnum)

    a score that can be achieved by adding the missing thing mentioned by the role



14
15
16
# File 'lib/inch/evaluation/role/missing.rb', line 14

def potential_score
  @value.to_i
end

#scoreObject



7
8
9
# File 'lib/inch/evaluation/role/missing.rb', line 7

def score
  nil
end