RubiGen::Source
PathSource looks for generators in a filesystem directory.
# File lib/rubigen/lookup.rb, line 216 def initialize(label, path) super label @path = File.expand_path path end
# File lib/rubigen/lookup.rb, line 230 def ==(source) self.class == source.class && path == source.path end
Yield each eligible subdirectory.
# File lib/rubigen/lookup.rb, line 222 def each Dir["#{path}/[a-z]*"].each do |dir| if File.directory?(dir) yield Spec.new(File.basename(dir), dir, label) end end end
[Validate]
Generated with the Darkfish Rdoc Generator 2.