Class: LanguageServer::Protocol::Interface::InlayHintOptions
- Inherits:
-
Object
- Object
- LanguageServer::Protocol::Interface::InlayHintOptions
- Defined in:
- lib/language_server/protocol/interface/inlay_hint_options.rb
Overview
Inlay hint options used during static registration.
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) ⇒ InlayHintOptions
constructor
A new instance of InlayHintOptions.
-
#resolve_provider ⇒ boolean
The server provides support to resolve additional information for an inlay hint item.
- #to_hash ⇒ Object
- #to_json(*args) ⇒ Object
- #work_done_progress ⇒ boolean
Constructor Details
#initialize(work_done_progress: nil, resolve_provider: nil) ⇒ InlayHintOptions
Returns a new instance of InlayHintOptions.
8 9 10 11 12 13 14 15 |
# File 'lib/language_server/protocol/interface/inlay_hint_options.rb', line 8 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.
31 32 33 |
# File 'lib/language_server/protocol/interface/inlay_hint_options.rb', line 31 def attributes @attributes end |
Instance Method Details
#resolve_provider ⇒ boolean
The server provides support to resolve additional information for an inlay hint item.
27 28 29 |
# File 'lib/language_server/protocol/interface/inlay_hint_options.rb', line 27 def resolve_provider attributes.fetch(:resolveProvider) end |
#to_hash ⇒ Object
33 34 35 |
# File 'lib/language_server/protocol/interface/inlay_hint_options.rb', line 33 def to_hash attributes end |
#to_json(*args) ⇒ Object
37 38 39 |
# File 'lib/language_server/protocol/interface/inlay_hint_options.rb', line 37 def to_json(*args) to_hash.to_json(*args) end |
#work_done_progress ⇒ boolean
18 19 20 |
# File 'lib/language_server/protocol/interface/inlay_hint_options.rb', line 18 def work_done_progress attributes.fetch(:workDoneProgress) end |