Class: Inch::Language::Elixir::Evaluation::Role::Base Abstract

Inherits:
Evaluation::Role show all
Defined in:
lib/inch/language/elixir/roles/base.rb

Overview

This class is abstract.

Instance Attribute Summary

Attributes inherited from Evaluation::Role

#object

Instance Method Summary collapse

Methods inherited from Evaluation::Role

applicable?, applicable_if, applicable_unless, #initialize, #max_score, #min_score, #potential_score, priority, #priority, #score, #suggestion

Constructor Details

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

Instance Method Details

#object_typeObject

Returns the type of the object that is being evaluated.


9
10
11
# File 'lib/inch/language/elixir/roles/base.rb', line 9

def object_type
  object.class.to_s.split('::').last.gsub(/Object$/, '').downcase
end