class LanguageServer::Protocol::Interface::ReferenceContext

Attributes

attributes[R]

Public Class Methods

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

  @attributes[:includeDeclaration] = include_declaration

  @attributes.freeze
end

Public Instance Methods

include_declaration() click to toggle source

Include the declaration of the current symbol.

@return [boolean]

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