Sha256: b53256e67ad64bce1c7a001d518ddddda957cfc6aafeb70e3ded045569453481
Contents?: true
Size: 731 Bytes
Versions: 1
Compression:
Stored size: 731 Bytes
Contents
module Yoda module Store module Actions class ImportCoreLibrary # @return [Registry] attr_reader :registry def initialize(registry) @registry = registry end def run load_core_patches.each do |patch| registry.add_patch(patch) end end private def load_core_patches core_doc_files.map { |yardoc_file| YardImporter.import(yardoc_file) } end def core_doc_files %W(.yoda/sources/ruby-#{RUBY_VERSION}/.yardoc .yoda/sources/ruby-#{RUBY_VERSION}/.yardoc-stdlib).map { |path| File.expand_path(path, '~') }.select { |path| File.exist?(path) } end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
yoda-language-server-0.4.0 | lib/yoda/store/actions/import_core_library.rb |