Sha256: ba2560088694de50bd3c033d700e816cff5db30de6439c9f2cfbaed6c40bc597

Contents?: true

Size: 514 Bytes

Versions: 4

Compression:

Stored size: 514 Bytes

Contents

module LanguageServer
  module Protocol
    module Interface
      class DocumentHighlightOptions < WorkDoneProgressOptions
        def initialize(work_done_progress: nil)
          @attributes = {}

          @attributes[:workDoneProgress] = work_done_progress if work_done_progress

          @attributes.freeze
        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

4 entries across 4 versions & 1 rubygems

Version Path
language_server-protocol-3.16.0.0 lib/language_server/protocol/interface/document_highlight_options.rb
language_server-protocol-3.15.0.2 lib/language_server/protocol/interface/document_highlight_options.rb
language_server-protocol-3.15.0.1 lib/language_server/protocol/interface/document_highlight_options.rb
language_server-protocol-3.15.0.0 lib/language_server/protocol/interface/document_highlight_options.rb