Class: LSP::MessageActionItem

Inherits:
LSPBase
  • Object
show all
Defined in:
lib/lsp/lsp_protocol.rb

Overview

export interface MessageActionItem

/**
 * A short title like 'Retry', 'Open Log' etc.
 */
title: string;

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from LSPBase

#initialize, #to_h, #to_json

Constructor Details

This class inherits a constructor from LSP::LSPBase

Instance Attribute Details

#titleObject

type: string



396
397
398
# File 'lib/lsp/lsp_protocol.rb', line 396

def title
  @title
end

Instance Method Details

#from_h!(value) ⇒ Object



398
399
400
401
402
# File 'lib/lsp/lsp_protocol.rb', line 398

def from_h!(value)
  value = {} if value.nil?
  self.title = value['title']
  self
end