Sha256: 0cf26b62ee761fb3020b56c626f02dd33d7f0752a4dea8c9b5d2beeb3c8a7287

Contents?: true

Size: 505 Bytes

Versions: 102

Compression:

Stored size: 505 Bytes

Contents

module LanguageServer
  module Protocol
    module Interface
      class HoverResult
        def initialize(value:)
          @attributes = {}

          @attributes[:value] = value

          @attributes.freeze
        end

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

102 entries across 102 versions & 12 rubygems

Version Path
language_server-protocol-3.17.0.2 lib/language_server/protocol/interface/hover_result.rb
language_server-protocol-3.17.0.1 lib/language_server/protocol/interface/hover_result.rb