Class: Inch::Language::Nodejs::Evaluation::Role::Module::WithChildren

Inherits:
Base show all
Defined in:
lib/inch/language/nodejs/roles/module.rb

Overview

Role assigned to modules with children

See Also:

  • CodeObject::Ruby::NamespaceObject#has_children?

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

Constructor Details

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

Instance Method Details

#max_scoreObject

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

#scoreObject

This role doesnot assign a score.


15
16
17
# File 'lib/inch/language/nodejs/roles/module.rb', line 15

def score
  0
end