Class: LanguageServer::Protocol::Interface::SignatureHelpRegistrationOptions
- Inherits:
-
TextDocumentRegistrationOptions
- Object
- TextDocumentRegistrationOptions
- LanguageServer::Protocol::Interface::SignatureHelpRegistrationOptions
- Defined in:
- lib/language_server/protocol/interface/signature_help_registration_options.rb
Instance Attribute Summary collapse
-
#attributes ⇒ Object
readonly
Returns the value of attribute attributes.
Instance Method Summary collapse
-
#initialize(document_selector:, trigger_characters: nil) ⇒ SignatureHelpRegistrationOptions
constructor
A new instance of SignatureHelpRegistrationOptions.
- #to_hash ⇒ Object
- #to_json(*args) ⇒ Object
-
#trigger_characters ⇒ string[]
The characters that trigger signature help automatically.
Methods inherited from TextDocumentRegistrationOptions
Constructor Details
#initialize(document_selector:, trigger_characters: nil) ⇒ SignatureHelpRegistrationOptions
Returns a new instance of SignatureHelpRegistrationOptions.
5 6 7 8 9 10 11 |
# File 'lib/language_server/protocol/interface/signature_help_registration_options.rb', line 5 def initialize(document_selector:, trigger_characters: nil) @attributes = {} @attributes[:triggerCharacters] = trigger_characters if trigger_characters @attributes.freeze end |
Instance Attribute Details
#attributes ⇒ Object (readonly)
Returns the value of attribute attributes.
22 23 24 |
# File 'lib/language_server/protocol/interface/signature_help_registration_options.rb', line 22 def attributes @attributes end |
Instance Method Details
#to_hash ⇒ Object
24 25 26 |
# File 'lib/language_server/protocol/interface/signature_help_registration_options.rb', line 24 def to_hash attributes end |
#to_json(*args) ⇒ Object
28 29 30 |
# File 'lib/language_server/protocol/interface/signature_help_registration_options.rb', line 28 def to_json(*args) to_hash.to_json(*args) end |
#trigger_characters ⇒ string[]
The characters that trigger signature help automatically.
18 19 20 |
# File 'lib/language_server/protocol/interface/signature_help_registration_options.rb', line 18 def trigger_characters attributes.fetch(:triggerCharacters) end |