2a1b42e52de14b41159c583694a079884321f340
[chise/ruby.git] / lib / chise / config.rb
1 #!/usr/bin/env ruby
2 # $Id: config.rb,v 1.1 2003-11-30 13:16:38 eto Exp $
3 # Copyright (C) 2002-2003 Kouichirou Eto, All rights reserved.
4 # This is free software with ABSOLUTELY NO WARRANTY.
5 # You can redistribute it and/or modify it under the terms of the GNU GPL2.
6
7 require 'singleton'
8
9 module CHISE
10   class Config
11     include Singleton
12     def initialize
13 #      @base_dir = File.expand_path(File.dirname(__FILE__)+"../../../..")
14       @base_dir = 'c:/chise'
15       @db_dir = @base_dir+"/char-db"
16       @ids_dir = @base_dir+"/ids"
17       @csf_dir = @base_dir+"/csf"
18       instance_variables.each {|name|
19         self.class.class_eval { attr_reader name.delete('@') }
20       }
21     end
22   end
23 end