class LanguageServer::Protocol::Interface::SaveOptions
Attributes
attributes[R]
Public Class Methods
new(include_text: nil)
click to toggle source
# File lib/language_server/protocol/interface/save_options.rb, line 5 def initialize(include_text: nil) @attributes = {} @attributes[:includeText] = include_text if include_text @attributes.freeze end
Public Instance Methods
include_text()
click to toggle source
The client is supposed to include the content on save.
@return [boolean]
# File lib/language_server/protocol/interface/save_options.rb, line 17 def include_text attributes.fetch(:includeText) end
to_hash()
click to toggle source
# File lib/language_server/protocol/interface/save_options.rb, line 23 def to_hash attributes end
to_json(*args)
click to toggle source
# File lib/language_server/protocol/interface/save_options.rb, line 27 def to_json(*args) to_hash.to_json(*args) end