Class: Inch::Language::Ruby::Evaluation::Role::Base Abstract
- Inherits:
-
Evaluation::Role
- Object
- Evaluation::Role
- Inch::Language::Ruby::Evaluation::Role::Base
- Defined in:
- lib/inch/language/ruby/roles/base.rb
Overview
Direct Known Subclasses
Method::Constructor, Method::Getter, Method::HasAlias, Method::Overridden, Method::Setter, Method::WithBangName, Method::WithManyLines, Method::WithManyParameters, Method::WithQuestioningName, Method::WithReturnDescription, Method::WithReturnType, Method::WithoutParameters, MethodParameter::Block, MethodParameter::Splat, MethodParameter::WithBadName, MethodParameter::WithMention, MethodParameter::WithType, MethodParameter::WithWrongMention, Missing, Namespace::Core, Namespace::Pure, Namespace::WithChildren, Namespace::WithManyAttributes, Namespace::WithManyChildren, Namespace::WithoutChildren, Namespace::WithoutMethods, Object::Alias, Object::InRoot, Object::Private, Object::Protected, Object::Public, Object::Tagged, Object::TaggedAsAPI, Object::TaggedAsInternalAPI, Object::TaggedAsNodoc, Object::TaggedAsPrivate, 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/ruby/roles/base.rb', line 9 def object_type object.class.to_s.split('::').last.gsub(/Object$/, '').downcase end |