class LanguageServer::Protocol::Interface::ShowDocumentResult

The result of an show document request.

Attributes

attributes[R]

Public Class Methods

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

  @attributes[:success] = success

  @attributes.freeze
end

Public Instance Methods

success() click to toggle source

A boolean indicating if the show was successful.

@return [boolean]

# File lib/language_server/protocol/interface/show_document_result.rb, line 20
def success
  attributes.fetch(:success)
end
to_hash() click to toggle source
# File lib/language_server/protocol/interface/show_document_result.rb, line 26
def to_hash
  attributes
end
to_json(*args) click to toggle source
# File lib/language_server/protocol/interface/show_document_result.rb, line 30
def to_json(*args)
  to_hash.to_json(*args)
end