Class: PlatformosCheck::LanguageServer::DocumentLinkProvider::DefaultTranslationFile

Inherits:
Object
  • Object
show all
Defined in:
lib/platformos_check/language_server/document_link_provider.rb

Instance Method Summary collapse

Constructor Details

#initialize(default_language) ⇒ DefaultTranslationFile

Returns a new instance of DefaultTranslationFile.



11
12
13
# File 'lib/platformos_check/language_server/document_link_provider.rb', line 11

def initialize(default_language)
  @default_language = default_language
end

Instance Method Details

#relative_pathObject



15
16
17
# File 'lib/platformos_check/language_server/document_link_provider.rb', line 15

def relative_path
  Pathname.new(@default_language, "#{@default_language}.yml")
end