Sha256: a85c410a8070be101aa7cc958f741f53fa329d65fe25bf0c5e73df200fc33679
Contents?: true
Size: 719 Bytes
Versions: 3
Compression:
Stored size: 719 Bytes
Contents
module Yoda module Store module Actions class ImportCoreLibrary # @return [Registry] attr_reader :registry class << self # @return [true, false] def run(registry) new(registry).run end end def initialize(registry) @registry = registry end # @return [true, false] def run return false unless File.exist?(doc_path) patch = YardImporter.import(doc_path) registry.add_patch(patch) true end private def doc_path File.expand_path("~/.yoda/sources/ruby-#{RUBY_VERSION}/.yardoc") end end end end end
Version data entries
3 entries across 3 versions & 1 rubygems