Sha256: 4c8a4d5db29601667a928edc695705208ed7d112d3745bd50224280d46bc9863

Contents?: true

Size: 530 Bytes

Versions: 9

Compression:

Stored size: 530 Bytes

Contents

module Yoda
  module Model
    module Descriptions
      class WordDescription < Base
        # @return [String]
        attr_reader :word

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

        # @return [String]
        def title
          word
        end

        # @return [String]
        def sort_text
          word
        end

        # @return [String]
        def to_markdown
          <<~EOS
          #{word}
          EOS
        end
      end
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
yoda-language-server-0.10.1 lib/yoda/model/descriptions/word_description.rb
yoda-language-server-0.10.0 lib/yoda/model/descriptions/word_description.rb
yoda-language-server-0.9.0 lib/yoda/model/descriptions/word_description.rb
yoda-language-server-0.8.0 lib/yoda/model/descriptions/word_description.rb
yoda-language-server-0.7.2 lib/yoda/model/descriptions/word_description.rb
yoda-language-server-0.7.1 lib/yoda/model/descriptions/word_description.rb
yoda-language-server-0.7.0 lib/yoda/model/descriptions/word_description.rb
yoda-language-server-0.6.2 lib/yoda/model/descriptions/word_description.rb
yoda-language-server-0.6.1 lib/yoda/model/descriptions/word_description.rb