class LanguageServer::Protocol::Interface::Location
Attributes
attributes[R]
Public Class Methods
new(uri:, range:)
click to toggle source
# File lib/language_server/protocol/interface/location.rb, line 5 def initialize(uri:, range:) @attributes = {} @attributes[:uri] = uri @attributes[:range] = range @attributes.freeze end
Public Instance Methods
range()
click to toggle source
@return [Range]
# File lib/language_server/protocol/interface/location.rb, line 20 def range attributes.fetch(:range) end
to_hash()
click to toggle source
# File lib/language_server/protocol/interface/location.rb, line 26 def to_hash attributes end
to_json(*args)
click to toggle source
# File lib/language_server/protocol/interface/location.rb, line 30 def to_json(*args) to_hash.to_json(*args) end
uri()
click to toggle source
@return [string]
# File lib/language_server/protocol/interface/location.rb, line 15 def uri attributes.fetch(:uri) end