Method: Configdir.read
- Defined in:
- lib/configdir.rb
.read(configdir) ⇒ Object
5 6 7 8 9 10 11 12 |
# File 'lib/configdir.rb', line 5 def self.read(configdir) @cfgdir = Hash.new Dir.foreach(configdir) do |conf| next if conf == '.' or conf == '..' @cfgdir[conf.to_sym] = File.open(configdir + "/" + conf).first.chomp end return @cfgdir end |