Sha256: fb315b3ae50c868e641704849f6954823f59f2d4cffdd75933eaf6630e9bd30f

Contents?: true

Size: 585 Bytes

Versions: 116

Compression:

Stored size: 585 Bytes

Contents

module LanguageServer
  module Protocol
    module Interface
      class MessageActionItem
        def initialize(title:)
          @attributes = {}

          @attributes[:title] = title

          @attributes.freeze
        end

        #
        # A short title like 'Retry', 'Open Log' etc.
        #
        # @return [string]
        def title
          attributes.fetch(:title)
        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

116 entries across 116 versions & 12 rubygems

Version Path
harbr-0.2.3 vendor/bundle/ruby/3.2.0/gems/language_server-protocol-3.17.0.3/lib/language_server/protocol/interface/message_action_item.rb
harbr-0.2.2 vendor/bundle/ruby/3.2.0/gems/language_server-protocol-3.17.0.3/lib/language_server/protocol/interface/message_action_item.rb
harbr-0.2.1 vendor/bundle/ruby/3.2.0/gems/language_server-protocol-3.17.0.3/lib/language_server/protocol/interface/message_action_item.rb
harbr-0.2.0 vendor/bundle/ruby/3.2.0/gems/language_server-protocol-3.17.0.3/lib/language_server/protocol/interface/message_action_item.rb
harbr-0.1.99 vendor/bundle/ruby/3.2.0/gems/language_server-protocol-3.17.0.3/lib/language_server/protocol/interface/message_action_item.rb
harbr-0.1.98 vendor/bundle/ruby/3.2.0/gems/language_server-protocol-3.17.0.3/lib/language_server/protocol/interface/message_action_item.rb
harbr-0.1.97 vendor/bundle/ruby/3.2.0/gems/language_server-protocol-3.17.0.3/lib/language_server/protocol/interface/message_action_item.rb
harbr-0.1.96 vendor/bundle/ruby/3.2.0/gems/language_server-protocol-3.17.0.3/lib/language_server/protocol/interface/message_action_item.rb
harbr-0.1.95 vendor/bundle/ruby/3.2.0/gems/language_server-protocol-3.17.0.3/lib/language_server/protocol/interface/message_action_item.rb
harbr-0.1.94 vendor/bundle/ruby/3.2.0/gems/language_server-protocol-3.17.0.3/lib/language_server/protocol/interface/message_action_item.rb
harbr-0.1.93 vendor/bundle/ruby/3.2.0/gems/language_server-protocol-3.17.0.3/lib/language_server/protocol/interface/message_action_item.rb
harbr-0.1.91 vendor/bundle/ruby/3.2.0/gems/language_server-protocol-3.17.0.3/lib/language_server/protocol/interface/message_action_item.rb
harbr-0.1.90 vendor/bundle/ruby/3.2.0/gems/language_server-protocol-3.17.0.3/lib/language_server/protocol/interface/message_action_item.rb
harbr-0.1.89 vendor/bundle/ruby/3.2.0/gems/language_server-protocol-3.17.0.3/lib/language_server/protocol/interface/message_action_item.rb
harbr-0.1.88 vendor/bundle/ruby/3.2.0/gems/language_server-protocol-3.17.0.3/lib/language_server/protocol/interface/message_action_item.rb
harbr-0.1.87 vendor/bundle/ruby/3.2.0/gems/language_server-protocol-3.17.0.3/lib/language_server/protocol/interface/message_action_item.rb
harbr-0.1.86 vendor/bundle/ruby/3.2.0/gems/language_server-protocol-3.17.0.3/lib/language_server/protocol/interface/message_action_item.rb
harbr-0.1.85 vendor/bundle/ruby/3.2.0/gems/language_server-protocol-3.17.0.3/lib/language_server/protocol/interface/message_action_item.rb
harbr-0.1.84 vendor/bundle/ruby/3.2.0/gems/language_server-protocol-3.17.0.3/lib/language_server/protocol/interface/message_action_item.rb
harbr-0.1.83 vendor/bundle/ruby/3.2.0/gems/language_server-protocol-3.17.0.3/lib/language_server/protocol/interface/message_action_item.rb