Sha256: 6a8ded41a52296e0d8c66531281710c389efc89c5af0fed838caf6b56e4b9427
Contents?: true
Size: 725 Bytes
Versions: 7
Compression:
Stored size: 725 Bytes
Contents
module Yoda module Store module Actions class ImportStdLibrary # @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-stdlib") end end end end end
Version data entries
7 entries across 7 versions & 1 rubygems