[Source]
# File lib/hobix/config.rb, line 27 27: def Config.load( conf_file ) 28: c = YAML::load( File::open( conf_file ) ) 29: c.keys.each do |k| 30: if k =~ /\s/ 31: k_ = k.gsub( /\s/, '_' ) 32: c[k_] = c.delete( k ) 33: end 34: end 35: c = YAML::object_maker( Hobix::Config, c ) 36: c.initialize 37: end
# File lib/hobix/config.rb, line 23 23: def initialize 24: @username = ENV['USER'] unless @username 25: self 26: end
[Validate]