Class: Inch::Language::JavaScript::Evaluation::Role::Function::Overridden
- Inherits:
-
Base
- Object
- Evaluation::Role
- Base
- Inch::Language::JavaScript::Evaluation::Role::Function::Overridden
- 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
Instance Method Summary collapse
-
#min_score ⇒ Object
This role sets a min_score.
-
#score ⇒ Object
This role doesnot assign a score.
Methods inherited from Base
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_score ⇒ Object
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 |
#score ⇒ Object
This role doesnot assign a score.
99 100 101 |
# File 'lib/inch/language/javascript/roles/function.rb', line 99 def score nil end |