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 'find'
|
||||
|
||||
require 'rubygems'
|
||||
#require 'rdebug/base'
|
||||
require 'qasim/constants'
|
||||
require 'qasim/map'
|
||||
require 'qasim'
|
||||
|
||||
module Qasim
|
||||
class Config
|
||||
|
|
|
@ -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"
|
||||
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
|
||||
require 'fileutils'
|
||||
require 'rubygems'
|
||||
|
||||
#require 'rdebug/base'
|
||||
require 'qasim/config'
|
||||
require 'qasim'
|
||||
|
||||
module Qasim
|
||||
|
||||
|
|
Loading…
Reference in a new issue