Sha256: f77ee81c33164920ac32446f9253370451f16a913b10006ab0407c73b7139ac4
Contents?: true
Size: 756 Bytes
Versions: 4
Compression:
Stored size: 756 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 # @param registry [Registry] 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
4 entries across 4 versions & 1 rubygems