Sha256: ac0884e5df34d18e3dae87ed93352129c18e9be1406cde0487f3ad7b4f4086d8

Contents?: true

Size: 804 Bytes

Versions: 2

Compression:

Stored size: 804 Bytes

Contents

module Yoda
  module Model
    module Descriptions
      # @abstract
      class RequirePathDescription
        # @return [String]
        attr_reader :path

        # @param path [String]
        def initialize(path)
          @path = path
        end

        # @abstract
        # @return [String]
        def title
          path
        end

        # @abstract
        # @return [String]
        def sort_text
          path
        end

        # @return [String]
        def label
          sort_text
        end

        # @abstract
        # @return [String]
        def to_markdown
          path
        end

        # Return an LSP MarkedString content for description
        # @return [String, Hash]
        def markup_content
          to_markdown
        end
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
yoda-language-server-0.10.1 lib/yoda/model/descriptions/require_path_description.rb
yoda-language-server-0.10.0 lib/yoda/model/descriptions/require_path_description.rb