lib: Code cleanup (to prevent recursive require) & added autoload.

This commit is contained in:
Glenn Y. Rolland 2012-07-24 01:13:08 +02:00
parent 2271181e20
commit 61075dfb79
4 changed files with 13 additions and 6 deletions

9
lib/qasim.rb Normal file
View file

@ -0,0 +1,9 @@
require 'qasim/constants'
module Qasim
autoload :Config, 'qasim/config'
autoload :Map, 'qasim/map'
end

View file

@ -6,10 +6,8 @@ require 'ostruct'
require 'pp'
require 'find'
require 'rubygems'
#require 'rdebug/base'
require 'qasim/constants'
require 'qasim/map'
require 'qasim'
module Qasim
class Config

View file

@ -1,5 +1,5 @@
module Qasim
APP_ICON_PATH = File.join QASIM_INCLUDE_DIR, "icons"
APP_ICON_PATH = File.join QASIM_DATA_DIR, "icons"
APP_NAME = "Qasim"
APP_VERSION = "0.1"

View file

@ -1,8 +1,8 @@
require 'fileutils'
require 'rubygems'
#require 'rdebug/base'
require 'qasim/config'
require 'qasim'
module Qasim