Class: Inch::Language::Nodejs::Evaluation::Role::Module::WithChildren
- Inherits:
-
Base
- Object
- Evaluation::Role
- Base
- Inch::Language::Nodejs::Evaluation::Role::Module::WithChildren
- Defined in:
- lib/inch/language/nodejs/roles/module.rb
Overview
Role assigned to modules with children
Instance Attribute Summary
Attributes inherited from Evaluation::Role
Instance Method Summary collapse
-
#max_score ⇒ Object
This role sets a max_score.
-
#score ⇒ Object
This role doesnot assign a score.
Methods inherited from Base
Methods inherited from Evaluation::Role
applicable?, applicable_if, applicable_unless, #initialize, #min_score, #object_type, #potential_score, #priority, priority, #suggestion
Constructor Details
This class inherits a constructor from Inch::Evaluation::Role
Instance Method Details
#max_score ⇒ Object
This role sets a max_score.
20 21 22 |
# File 'lib/inch/language/nodejs/roles/module.rb', line 20 def max_score # @value.to_f end |
#score ⇒ Object
This role doesnot assign a score.
15 16 17 |
# File 'lib/inch/language/nodejs/roles/module.rb', line 15 def score 0 end |