Class: RubiGen::Source

Class | RubiGen::Source
In: | lib/rubigen/lookup.rb
Parent: | Object

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.

### Methods

each names new

### Included Modules

Enumerable

### Attributes

label | [R] |

### Public Class methods

new(label)

### Public Instance methods

each()

The each method must be implemented in subclasses. The base implementation raises an error.

names(filter = nil)

Return a convenient sorted list of all generator names.

[Validate]