class LanguageServer::Protocol::Interface::MessageActionItem

Attributes

attributes[R]

Public Class Methods

new(title:) click to toggle source
# File lib/language_server/protocol/interface/message_action_item.rb, line 5
def initialize(title:)
  @attributes = {}

  @attributes[:title] = title

  @attributes.freeze
end

Public Instance Methods

title() click to toggle source

A short title like 'Retry', 'Open Log' etc.

@return [string]

# File lib/language_server/protocol/interface/message_action_item.rb, line 17
def title
  attributes.fetch(:title)
end
to_hash() click to toggle source
# File lib/language_server/protocol/interface/message_action_item.rb, line 23
def to_hash
  attributes
end
to_json(*args) click to toggle source
# File lib/language_server/protocol/interface/message_action_item.rb, line 27
def to_json(*args)
  to_hash.to_json(*args)
end