Sha256: d1c25a8848d6d94c68934c79476190022d0d6c92ca787a15007325caf0395fdf
Contents?: true
Size: 631 Bytes
Versions: 2
Compression:
Stored size: 631 Bytes
Contents
module LanguageServer module Protocol module Interface # # Save options. # class SaveOptions def initialize(include_text: nil) @attributes = {} @attributes[:includeText] = include_text if include_text @attributes.freeze end # # The client is supposed to include the content on save. # # @return [boolean] def include_text attributes.fetch(:includeText) end attr_reader :attributes def to_json(*args) attributes.to_json(*args) end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
language_server-protocol-0.4.0 | lib/language_server/protocol/interface/save_options.rb |
language_server-protocol-0.3.0 | lib/language_server/protocol/interface/save_options.rb |