Class: Inch::Language::Ruby::Evaluation::Role::Missing

Inherits:
Base show all
Defined in:
lib/inch/language/ruby/roles/missing.rb

Overview

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

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, #priority, priority, #suggestion

Constructor Details

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

Instance Method Details

#potential_scoreFixnum


16
17
18
# File 'lib/inch/language/ruby/roles/missing.rb', line 16

def potential_score
  @value.to_i
end

#scoreObject


9
10
11
# File 'lib/inch/language/ruby/roles/missing.rb', line 9

def score
  nil
end