lib/configliere.rb in configliere-0.2.2 vs lib/configliere.rb in configliere-0.2.3
- old
+ new
@@ -5,11 +5,11 @@
module Configliere
# delegates to Configliere::Param
def self.new *args, &block
- Configliere::Param.new *args, &block
+ Configliere::Param.new(*args, &block)
end
ALL_MIXINS = [:define, :config_file, :commandline, :encrypted, :env_var, :config_block, :git_style_binaries]
def self.use *mixins
mixins = ALL_MIXINS if mixins.include?(:all) || mixins.empty?
@@ -18,11 +18,11 @@
end
end
# Base class for Configliere errors.
Error = Class.new(StandardError)
-
+
end
# Defines a global config object
Settings = Configliere.new unless defined?(Settings)
@@ -30,7 +30,7 @@
# Allows the
# Config :this => that, :cat => :hat
# pattern.
#
def Settings *args
- Settings.defaults *args
+ Settings.defaults(*args)
end