Sources enumerate (yield from #) generator specs which describe where to find and how to create generators. Enumerable is mixed in so, for example, source.collect will retrieve every generator. Sources may be assigned a label to distinguish them.
The each method must be implemented in subclasses. The base implementation raises an error.
# File lib/rubigen/lookup.rb, line 195
195: def each
196: raise NotImplementedError
197: end
Return a convenient sorted list of all generator names.
# File lib/rubigen/lookup.rb, line 200
200: def names(filter = nil)
201: inject([]) do |mem, spec|
202: case filter
203: when :visible
204: mem << spec.name if spec.visible?
205: end
206: mem
207: end.sort
208: end
Disabled; run with --debug to generate this.
Generated with the Darkfish Rdoc Generator 1.1.6.