Class: Inch::Language::Nodejs::Evaluation::Role::Base Abstract
- Inherits:
-
Evaluation::Role
- Object
- Evaluation::Role
- Inch::Language::Nodejs::Evaluation::Role::Base
- Defined in:
- lib/inch/language/nodejs/roles/base.rb
Overview
Direct Known Subclasses
Function::Constructor, Function::Getter, Function::HasAlias, Function::Overridden, Function::Setter, Function::WithBangName, Function::WithManyLines, Function::WithManyParameters, Function::WithQuestioningName, Function::WithReturnDescription, Function::WithReturnType, Function::WithoutParameters, FunctionParameter::Block, FunctionParameter::Splat, FunctionParameter::WithBadName, FunctionParameter::WithMention, FunctionParameter::WithType, FunctionParameter::WithWrongMention, Missing, Module::Pure, Module::WithChildren, Module::WithManyChildren, Module::WithoutChildren, Module::WithoutMethods, Object::InRoot, Object::Public, Object::Tagged, Object::TaggedAsNodoc, Object::WithCodeExample, Object::WithDoc, Object::WithMultipleCodeExamples
Instance Attribute Summary
Attributes inherited from Evaluation::Role
Instance Method Summary collapse
-
#object_type ⇒ Object
Returns the type of the
object
that is being evaluated.
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_type ⇒ Object
Returns the type of the object
that is being evaluated.
9 10 11 |
# File 'lib/inch/language/nodejs/roles/base.rb', line 9 def object_type object.class.to_s.split('::').last.gsub(/Object$/, '').downcase end |