2010-04-22 23:52:11 +00:00
|
|
|
# require 'locomotive/patches'
|
|
|
|
require 'locomotive/configuration'
|
|
|
|
|
2010-04-11 23:59:18 +00:00
|
|
|
module Locomotive
|
|
|
|
|
|
|
|
class << self
|
|
|
|
attr_accessor :config
|
|
|
|
|
|
|
|
def config
|
|
|
|
self.config = Configuration.new unless @config
|
|
|
|
@config
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
def self.configure
|
|
|
|
self.config ||= Configuration.new
|
|
|
|
yield(self.config)
|
|
|
|
end
|
|
|
|
|
|
|
|
end
|