Class: Inch::Evaluation::Role::Object::Public

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

Direct Known Subclasses

Constant::Public

Instance Attribute Summary

Attributes inherited from Base

#object

Instance Method Summary collapse

Methods inherited from Base

#initialize, #max_score, #min_score, #object_type, #potential_score, #score, #suggestion

Constructor Details

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

Instance Method Details

#priorityObject



33
34
35
36
37
38
39
# File 'lib/inch/evaluation/role/object.rb', line 33

def priority
  if object.type == :constant
    -1
  else
    +2
  end
end