class YARD::CLI::YRI

def try_load_object(name, cache_path)

Returns:
  • (void) -

Parameters:
  • cache_path (String) -- the location of the yardoc
  • name (String) -- the object path
def try_load_object(name, cache_path)
  obj = Registry.at(name)
  cache_object(name, cache_path) if obj && cache_path
  obj
end