Sha256: 75786f4a71be6569dba9dabcde4319ecef878e9951ac7363941bf1db030319d2
Contents?: true
Size: 978 Bytes
Versions: 7
Compression:
Stored size: 978 Bytes
Contents
module LanguageServer module Protocol module Interfaces 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_json(*args) attributes.to_json(*args) end end end end end
Version data entries
7 entries across 7 versions & 2 rubygems