lib/yard/lib/yard/cli/yri.rb
def try_load_object(name, cache_path)
        if obj = Registry.at(name)
          if cache_path
            cache_object(name, cache_path)
          end
          return obj
        end
      end
# Tries to load the object with name. If successful, caches the object
# with the cache_path
#
# @param [String] name the object path
# @param [String] cache_path the location of the yardoc
#   db containing the object to cache for future lookups.
#   No caching is done if this is nil.
# @return [void]
Tries to load the object with name. If successful, caches the object
with the cache_path
Tries to load the object with name . If successful caches the object with the cache_path
def try_load_object(name, cache_path)
        if obj = Registry.at(name)
          if cache_path
            cache_object(name, cache_path)
          end
          return obj
        end
      end
def try_load_object ( name , cache_path ) if obj = Registry . at ( name ) if cache_path cache_object ( name , cache_path ) end return obj end end
Tries to load the object with name.
Tries to load the object with name .
None
void
name
cache_path
cache_path the location of the yardoc db containing the object to cache for future lookups. No caching is done if this is nil.
cache_path the location of the yardoc db containing the object to cache for future lookups . No caching is done if this is nil .