Class | FastRI::RiIndex |
In: |
lib/fastri/ri_index.rb
|
Parent: | Object |
This class provides the same functionality as RiReader, with some improvements:
Some operations can be restricted to a given "scope", that is, a "RI DB directory". This allows you to e.g. look for all the instance methods in String defined by a package.
Such operations take a scope argument, which is either an integer which indexes the source in paths, or a name identifying the source (either "system" or a package name). If scope == nil, the information from all sources is merged.
MAGIC | = | "FastRI index #{FASTRI_INDEX_FORMAT}" |
paths | [R] |
Returns the MethodDescription associated to the given full_name. Only the first definition is returned when scope = nil.
Returns an array of MethodEntry objects, corresponding to the methods in the ClassEntry objects in the namespaces array.
Return the MethodDescription for a given MethodEntry by deserializing the YAML.
Load the index from the given IO. It must contain a textual representation generated by dump.
Returns an array of ClassEntry objects whose names match target, and which correspond to the namespaces contained in namespaces. namespaces is an array of ClassEntry objects.
Returns array of MethodEntry objects under class_entry_or_name (either String or ClassEntry) in the hierarchy.
Returns array of MethodEntry objects under class_entry_or_name (either String or ClassEntry) in the hierarchy whose full_name matches the given regexp.
Returns array of ClassEntry objects under class_entry_or_name (either String or ClassEntry) in the hierarchy.
Returns array of ClassEntry objects under class_entry_or_name (either String or ClassEntry) in the hierarchy whose full_name matches the given regexp.