class LanguageServer::Protocol::Interface::ExecuteCommandRegistrationOptions
Execute command registration options.
Attributes
attributes[R]
Public Class Methods
new(work_done_progress: nil, commands:)
click to toggle source
# File lib/language_server/protocol/interface/execute_command_registration_options.rb, line 8 def initialize(work_done_progress: nil, commands:) @attributes = {} @attributes[:workDoneProgress] = work_done_progress if work_done_progress @attributes[:commands] = commands @attributes.freeze end
Public Instance Methods
commands()
click to toggle source
The commands to be executed on the server
@return [string
# File lib/language_server/protocol/interface/execute_command_registration_options.rb, line 26 def commands attributes.fetch(:commands) end
to_hash()
click to toggle source
# File lib/language_server/protocol/interface/execute_command_registration_options.rb, line 32 def to_hash attributes end
to_json(*args)
click to toggle source
# File lib/language_server/protocol/interface/execute_command_registration_options.rb, line 36 def to_json(*args) to_hash.to_json(*args) end
work_done_progress()
click to toggle source
@return [boolean]
# File lib/language_server/protocol/interface/execute_command_registration_options.rb, line 18 def work_done_progress attributes.fetch(:workDoneProgress) end