Class: Inch::Language::JavaScript::Evaluation::Role::Function::Overridden

Inherits:
Base show all
Defined in:
lib/inch/language/javascript/roles/function.rb

Overview

Role assigned to methods that are overriding another method

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

Constructor Details

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

Instance Method Details

#min_scoreObject

This role sets a min_score.



104
105
106
# File 'lib/inch/language/javascript/roles/function.rb', line 104

def min_score
  @value.to_f
end

#scoreObject

This role doesnot assign a score.



99
100
101
# File 'lib/inch/language/javascript/roles/function.rb', line 99

def score
  nil
end