Class: LanguageServer::Protocol::Interface::WorkspaceSymbolRegistrationOptions
- Inherits:
-
Object
- Object
- LanguageServer::Protocol::Interface::WorkspaceSymbolRegistrationOptions
- Defined in:
- lib/language_server/protocol/interface/workspace_symbol_registration_options.rb
Instance Attribute Summary collapse
-
#attributes ⇒ Object
readonly
Returns the value of attribute attributes.
Instance Method Summary collapse
-
#initialize(work_done_progress: nil, resolve_provider: nil) ⇒ WorkspaceSymbolRegistrationOptions
constructor
A new instance of WorkspaceSymbolRegistrationOptions.
-
#resolve_provider ⇒ boolean
The server provides support to resolve additional information for a workspace symbol.
- #to_hash ⇒ Object
- #to_json(*args) ⇒ Object
- #work_done_progress ⇒ boolean
Constructor Details
#initialize(work_done_progress: nil, resolve_provider: nil) ⇒ WorkspaceSymbolRegistrationOptions
Returns a new instance of WorkspaceSymbolRegistrationOptions.
5 6 7 8 9 10 11 12 |
# File 'lib/language_server/protocol/interface/workspace_symbol_registration_options.rb', line 5 def initialize(work_done_progress: nil, resolve_provider: nil) @attributes = {} @attributes[:workDoneProgress] = work_done_progress if work_done_progress @attributes[:resolveProvider] = resolve_provider if resolve_provider @attributes.freeze end |
Instance Attribute Details
#attributes ⇒ Object (readonly)
Returns the value of attribute attributes.
28 29 30 |
# File 'lib/language_server/protocol/interface/workspace_symbol_registration_options.rb', line 28 def attributes @attributes end |
Instance Method Details
#resolve_provider ⇒ boolean
The server provides support to resolve additional information for a workspace symbol.
24 25 26 |
# File 'lib/language_server/protocol/interface/workspace_symbol_registration_options.rb', line 24 def resolve_provider attributes.fetch(:resolveProvider) end |
#to_hash ⇒ Object
30 31 32 |
# File 'lib/language_server/protocol/interface/workspace_symbol_registration_options.rb', line 30 def to_hash attributes end |
#to_json(*args) ⇒ Object
34 35 36 |
# File 'lib/language_server/protocol/interface/workspace_symbol_registration_options.rb', line 34 def to_json(*args) to_hash.to_json(*args) end |
#work_done_progress ⇒ boolean
15 16 17 |
# File 'lib/language_server/protocol/interface/workspace_symbol_registration_options.rb', line 15 def work_done_progress attributes.fetch(:workDoneProgress) end |