method lookup
Documentation for method lookup
assembled from the following types:
class Documentable::Registry
(Documentable::Registry) method lookup
Defined as
method lookup(Str , Str --> Hash)
This method will classify all Documentable objects in the Documentable::Registry
using the attribute $by
and will return all of those whose attribute $by
is set to $what
. These queries are cached the first time they are made, so next calls to this method will be faster.
Example:
my = (... initialize ...)# query all Documentable objects with $.kind# set to Kind::Type.lookup(Kind::Type.Str, :by<kind>)