lib/ultra_config/namespace.rb in ultra_config-0.10.3 vs lib/ultra_config/namespace.rb in ultra_config-0.11.0

- old
+ new

@@ -23,11 +23,11 @@ def namespace(name, &block) @objects[name] = Namespace.new(&block) define_singleton_method(name) { @objects[name] } end - def config(name, default = nil, options = {}, &block) - @objects[name] = Config.new(default, options, &block) + def config(name, options = {}, &block) + @objects[name] = Config.new(options, &block) define_singleton_method("#{name}=") { |value| @objects[name].value = value } define_singleton_method(name) { @objects[name].value } end def helper(name, &block) \ No newline at end of file