Class: Yard::Lint::Validators::Semantic::AbstractMethods::MessagesBuilder
- Inherits:
-
Object
- Object
- Yard::Lint::Validators::Semantic::AbstractMethods::MessagesBuilder
- Defined in:
- lib/yard/lint/validators/semantic/abstract_methods/messages_builder.rb
Overview
Builds messages for abstract method offenses
Class Method Summary collapse
-
.call(offense) ⇒ String
Build message for abstract method offense.
Class Method Details
.call(offense) ⇒ String
Build message for abstract method offense
15 16 17 18 |
# File 'lib/yard/lint/validators/semantic/abstract_methods/messages_builder.rb', line 15 def call(offense) "Abstract method `#{offense[:method_name]}` has implementation " \ '(should only raise NotImplementedError or be empty)' end |