Parent

Methods

Included Modules

Class/Module Index [+]

Quicksearch

Rails::Generator::Source

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

label[R]

Public Class Methods

new(label) click to toggle source
# File lib/rails_generator/lookup.rb, line 164
def initialize(label)
  @label = label
end

Public Instance Methods

each() click to toggle source

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

# File lib/rails_generator/lookup.rb, line 170
def each
  raise NotImplementedError
end
names() click to toggle source

Return a convenient sorted list of all generator names.

# File lib/rails_generator/lookup.rb, line 175
def names
  map { |spec| spec.name }.sort
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.