Methods

RubiGen::PathSource

PathSource looks for generators in a filesystem directory.

Attributes

path[R]

Public Class Methods

new(label, path) click to toggle source
     # File lib/rubigen/lookup.rb, line 216
216:     def initialize(label, path)
217:       super label
218:       @path = File.expand_path path
219:     end

Public Instance Methods

==(source) click to toggle source
     # File lib/rubigen/lookup.rb, line 230
230:     def ==(source)
231:       self.class == source.class && path == source.path
232:     end
each() click to toggle source

Yield each eligible subdirectory.

     # File lib/rubigen/lookup.rb, line 222
222:     def each
223:       Dir["#{path}/[a-z]*"].each do |dir|
224:         if File.directory?(dir)
225:           yield Spec.new(File.basename(dir), dir, label)
226:         end
227:       end
228:     end

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.