class LanguageServer::Protocol::Interface::Message

Attributes

attributes[R]

Public Class Methods

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

  @attributes[:jsonrpc] = jsonrpc

  @attributes.freeze
end

Public Instance Methods

jsonrpc() click to toggle source

@return [string]

# File lib/language_server/protocol/interface/message.rb, line 14
def jsonrpc
  attributes.fetch(:jsonrpc)
end
to_hash() click to toggle source
# File lib/language_server/protocol/interface/message.rb, line 20
def to_hash
  attributes
end
to_json(*args) click to toggle source
# File lib/language_server/protocol/interface/message.rb, line 24
def to_json(*args)
  to_hash.to_json(*args)
end