Module: FastRI::Util

Module | FastRI::Util
In: | lib/fastri/util.rb

### Methods

change_query_method_type find_home gem_directories_unique gem_info_for_path gem_relpath_to_full_name

### Classes and Modules

Module FastRI::Util::MagicHelp

### Public Instance methods

change_query_method_type(query)
find_home()

Returns the home directory (win32-aware).

gem_directories_unique()

Return an array of `[name, version, path]` arrays corresponding to the last version of each installed gem. `path` is the base path of the RI documentation from the gem. If the version cannot be determined, it will be `nil`, and the corresponding gem might be repeated in the output array (once per version).

gem_info_for_path(path, gem_dir_info = FastRI::Util.gem_directories_unique)

Return the `[name, version, path]` array for the gem owning the RI information stored in `path`, or `nil`.

gem_relpath_to_full_name(relpath)

Return the `full_name` (in ClassEntry or MethodEntry‘s sense) given a path to a .yaml file relative to a "base RI DB path".

[Validate]