Sha256: 22a0b9c175813c4b86870d76a7ed8959b0900ff58f7fd881fd50980caee708aa
Contents?: true
Size: 899 Bytes
Versions: 8
Compression:
Stored size: 899 Bytes
Contents
module Yoda module Store module Actions class ReadFile # @return [Registry] attr_reader :registry # @return [String] attr_reader :file # @param registry [Registry] # @param file [String] # @return [void] def self.run(registry, file, root_path: nil) self.new(registry, file, root_path: root_path).run end # @param registry [Registry] # @param file [String] def initialize(registry, file, root_path: nil) @registry = registry @file = file @root_path = root_path end # @return [void] def run YARD::Registry.clear YARD.parse([file]) patch = YardImporter.new(file).import(YARD::Registry.all + [YARD::Registry.root]).patch registry.add_patch(patch) end end end end end
Version data entries
8 entries across 8 versions & 1 rubygems