lib/cockpit/configuration.rb in cockpit-0.0.1.5 vs lib/cockpit/configuration.rb in cockpit-0.0.1.7

- old
+ new

@@ -130,13 +130,13 @@ @global ||= new @global.build(&block) @global end - def configure(*args, &block) + def define!(*args, &block) options = args.extract_options! path = args.first - if path && !path.is_a?(Hash) + if path && !path.is_a?(Hash) && !block_given? global[path] elsif !options.empty? global.set(options) else global(&block)