lib: Code cleanup (to prevent recursive require) & added autoload.
This commit is contained in:
parent
2271181e20
commit
61075dfb79
4 changed files with 13 additions and 6 deletions
9
lib/qasim.rb
Normal file
9
lib/qasim.rb
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
|
||||||
|
|
||||||
|
require 'qasim/constants'
|
||||||
|
|
||||||
|
module Qasim
|
||||||
|
autoload :Config, 'qasim/config'
|
||||||
|
autoload :Map, 'qasim/map'
|
||||||
|
end
|
||||||
|
|
|
@ -6,10 +6,8 @@ require 'ostruct'
|
||||||
require 'pp'
|
require 'pp'
|
||||||
require 'find'
|
require 'find'
|
||||||
|
|
||||||
require 'rubygems'
|
|
||||||
#require 'rdebug/base'
|
#require 'rdebug/base'
|
||||||
require 'qasim/constants'
|
require 'qasim'
|
||||||
require 'qasim/map'
|
|
||||||
|
|
||||||
module Qasim
|
module Qasim
|
||||||
class Config
|
class Config
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
module Qasim
|
module Qasim
|
||||||
APP_ICON_PATH = File.join QASIM_INCLUDE_DIR, "icons"
|
APP_ICON_PATH = File.join QASIM_DATA_DIR, "icons"
|
||||||
APP_NAME = "Qasim"
|
APP_NAME = "Qasim"
|
||||||
APP_VERSION = "0.1"
|
APP_VERSION = "0.1"
|
||||||
|
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
|
|
||||||
require 'fileutils'
|
require 'fileutils'
|
||||||
require 'rubygems'
|
|
||||||
#require 'rdebug/base'
|
#require 'rdebug/base'
|
||||||
require 'qasim/config'
|
require 'qasim'
|
||||||
|
|
||||||
module Qasim
|
module Qasim
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue