Class: PlatformosCheck::LanguageServer::DocumentLinkProvider::DefaultTranslationFile
- Inherits:
-
Object
- Object
- PlatformosCheck::LanguageServer::DocumentLinkProvider::DefaultTranslationFile
- Defined in:
- lib/platformos_check/language_server/document_link_provider.rb
Instance Method Summary collapse
-
#initialize(default_language) ⇒ DefaultTranslationFile
constructor
A new instance of DefaultTranslationFile.
- #relative_path ⇒ Object
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_path ⇒ Object
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 |