class LanguageServer::Protocol::Interface::ConfigurationItem
Attributes
attributes[R]
Public Class Methods
new(scope_uri: nil, section: nil)
click to toggle source
# File lib/language_server/protocol/interface/configuration_item.rb, line 5 def initialize(scope_uri: nil, section: nil) @attributes = {} @attributes[:scopeUri] = scope_uri if scope_uri @attributes[:section] = section if section @attributes.freeze end
Public Instance Methods
scope_uri()
click to toggle source
The scope to get the configuration section for.
@return [string]
# File lib/language_server/protocol/interface/configuration_item.rb, line 18 def scope_uri attributes.fetch(:scopeUri) end
section()
click to toggle source
The configuration section asked for.
@return [string]
# File lib/language_server/protocol/interface/configuration_item.rb, line 26 def section attributes.fetch(:section) end
to_hash()
click to toggle source
# File lib/language_server/protocol/interface/configuration_item.rb, line 32 def to_hash attributes end
to_json(*args)
click to toggle source
# File lib/language_server/protocol/interface/configuration_item.rb, line 36 def to_json(*args) to_hash.to_json(*args) end