Class: LSP::ConfigurationItem
- Defined in:
- lib/lsp/lsp_protocol_configuration.rb
Overview
export interface ConfigurationItem
/**
* The scope to get the configuration section for.
*/
scopeUri?: string;
/**
* The configuration section asked for.
*/
section?: string;
Instance Attribute Summary collapse
-
#scopeUri ⇒ Object
type: string # type: string.
-
#section ⇒ Object
type: string # type: string.
Instance Method Summary collapse
- #from_h!(value) ⇒ Object
-
#initialize(initial_hash = nil) ⇒ ConfigurationItem
constructor
A new instance of ConfigurationItem.
Methods inherited from LSPBase
Constructor Details
#initialize(initial_hash = nil) ⇒ ConfigurationItem
Returns a new instance of ConfigurationItem.
54 55 56 57 |
# File 'lib/lsp/lsp_protocol_configuration.rb', line 54 def initialize(initial_hash = nil) super @optional_method_names = %i[scopeUri section] end |
Instance Attribute Details
#scopeUri ⇒ Object
type: string # type: string
52 53 54 |
# File 'lib/lsp/lsp_protocol_configuration.rb', line 52 def scopeUri @scopeUri end |
#section ⇒ Object
type: string # type: string
52 53 54 |
# File 'lib/lsp/lsp_protocol_configuration.rb', line 52 def section @section end |
Instance Method Details
#from_h!(value) ⇒ Object
59 60 61 62 63 64 |
# File 'lib/lsp/lsp_protocol_configuration.rb', line 59 def from_h!(value) value = {} if value.nil? self.scopeUri = value['scopeUri'] self.section = value['section'] self end |