Sha256: 9e0dfa95a98e54629ffe7362a8fc749c22d4e145e162d3b3f90fea354ed000d6

Contents?: true

Size: 603 Bytes

Versions: 106

Compression:

Stored size: 603 Bytes

Contents

module LanguageServer
  module Protocol
    module Interface
      class TypeDefinitionOptions
        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/type_definition_options.rb
language_server-protocol-3.17.0.2 lib/language_server/protocol/interface/type_definition_options.rb
language_server-protocol-3.17.0.1 lib/language_server/protocol/interface/type_definition_options.rb
language_server-protocol-3.16.0.3 lib/language_server/protocol/interface/type_definition_options.rb
language_server-protocol-3.16.0.2 lib/language_server/protocol/interface/type_definition_options.rb
language_server-protocol-3.16.0.1 lib/language_server/protocol/interface/type_definition_options.rb