lib/goma/config.rb in goma-0.0.1.rc1 vs lib/goma/config.rb in goma-0.0.1.rc2
- old
+ new
@@ -2,15 +2,15 @@
class << self
def configure(&block)
yield @config ||= Goma::Configuration.new
end
- def config
- @config
+ def config(scope=nil)
+ scope ? (config_for[scope] || @config) : @config
end
def configure_for(scope, &block)
- yield config_for[scope] = config.dup
+ yield config_for[scope] = @config.dup
end
def config_for
@config_for ||= {}
end