Class: Inch::Evaluation::Role::Namespace::WithChildren

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

Overview

Role assigned to namespaces with children

See Also:

  • CodeObject::Proxy::NamespaceObject#has_children?

Instance Attribute Summary

Attributes inherited from Base

#object

Instance Method Summary collapse

Methods inherited from Base

applicable?, applicable_if, applicable_unless, #initialize, #min_score, #object_type, #potential_score, #priority, #suggestion

Constructor Details

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

Instance Method Details

#max_scoreObject

This role sets a max_score.



18
19
20
# File 'lib/inch/evaluation/role/namespace.rb', line 18

def max_score
  # @value.to_f
end

#scoreObject

This role doesnot assign a score.



13
14
15
# File 'lib/inch/evaluation/role/namespace.rb', line 13

def score
  0
end