- Inheritance
- < Object
- Included Modules
- Enumerable
Sources enumerate (yield from each) 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.
Attributes
Name | Visibility | R/W | Description |
---|---|---|---|
label | public | R |
Methods
Class
Visibility | Signature |
---|---|
public | new (label) |
Instance
Visibility | Signature |
---|---|
public | each () |
public | names () |
Class Method Detail
new(label)
Instance Method Detail
each()
The each method must be implemented in subclasses. The base implementation raises an error.
names()
Return a convenient sorted list of all generator names.