Class: Rucoa::Handlers::TextDocumentCodeActionHandler::DiagnosticToCodeActionMapper
- Inherits:
-
Object
- Object
- Rucoa::Handlers::TextDocumentCodeActionHandler::DiagnosticToCodeActionMapper
- Defined in:
- lib/rucoa/handlers/text_document_code_action_handler.rb
Class Method Summary collapse
Instance Method Summary collapse
- #call ⇒ Hash
-
#initialize(diagnostic) ⇒ DiagnosticToCodeActionMapper
constructor
A new instance of DiagnosticToCodeActionMapper.
Constructor Details
#initialize(diagnostic) ⇒ DiagnosticToCodeActionMapper
Returns a new instance of DiagnosticToCodeActionMapper.
45 46 47 |
# File 'lib/rucoa/handlers/text_document_code_action_handler.rb', line 45 def initialize(diagnostic) @diagnostic = diagnostic end |
Class Method Details
.call(diagnostic) ⇒ Hash
39 40 41 |
# File 'lib/rucoa/handlers/text_document_code_action_handler.rb', line 39 def call(diagnostic) new(diagnostic).call end |
Instance Method Details
#call ⇒ Hash
50 51 52 53 54 55 56 57 58 |
# File 'lib/rucoa/handlers/text_document_code_action_handler.rb', line 50 def call { diagnostics: diagnostics, edit: edit, isPreferred: preferred?, kind: kind, title: title } end |