Class: Inch::Evaluation::Role::Method::Overridden

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

Instance Attribute Summary

Attributes inherited from Base

#object

Instance Method Summary collapse

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_scoreObject

This role sets a min_score.



53
54
55
# File 'lib/inch/evaluation/role/method.rb', line 53

def min_score
  @value.to_f
end

#priorityObject

It seems more important to document the overridden method, than the overriding one



43
44
45
# File 'lib/inch/evaluation/role/method.rb', line 43

def priority
  -2
end

#scoreObject

This role doesnot assign a score.



48
49
50
# File 'lib/inch/evaluation/role/method.rb', line 48

def score
  nil
end