Sha256: 9ffc7a432210f64383ade477d4ae63420093f1b6e806bb16270d6d8a92406a62
Contents?: true
Size: 1 KB
Versions: 6
Compression:
Stored size: 1 KB
Contents
module LanguageServer module Protocol module Interface class DocumentRangeFormattingParams def initialize(text_document:, range:, options:) @attributes = {} @attributes[:textDocument] = text_document @attributes[:range] = range @attributes[:options] = options @attributes.freeze end # # The document to format. # # @return [TextDocumentIdentifier] def text_document attributes.fetch(:textDocument) end # # The range to format # # @return [Range] def range attributes.fetch(:range) end # # The format options # # @return [FormattingOptions] def options attributes.fetch(:options) end attr_reader :attributes def to_hash attributes end def to_json(*args) to_hash.to_json(*args) end end end end end
Version data entries
6 entries across 6 versions & 1 rubygems