Sha256: ee6d6903c5a4cec258dcd02b2a7e79ec75df8df8ccc77240e9590ec67f26420c

Contents?: true

Size: 594 Bytes

Versions: 106

Compression:

Stored size: 594 Bytes

Contents

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

          @attributes[:workDoneProgress] = work_done_progress if work_done_progress

          @attributes.freeze
        end

        # @return [boolean]
        def work_done_progress
          attributes.fetch(:workDoneProgress)
        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

106 entries across 106 versions & 13 rubygems

Version Path
language_server-protocol-3.17.0.3 lib/language_server/protocol/interface/hover_options.rb
language_server-protocol-3.17.0.2 lib/language_server/protocol/interface/hover_options.rb
language_server-protocol-3.17.0.1 lib/language_server/protocol/interface/hover_options.rb
language_server-protocol-3.16.0.3 lib/language_server/protocol/interface/hover_options.rb
language_server-protocol-3.16.0.2 lib/language_server/protocol/interface/hover_options.rb
language_server-protocol-3.16.0.1 lib/language_server/protocol/interface/hover_options.rb