lib/cliutils/configuration.rb in cliutils-1.0.4 vs lib/cliutils/configuration.rb in cliutils-1.0.5
- old
+ new
@@ -14,17 +14,18 @@
# Singleton method to return (or initialize, if needed)
# a Configurator.
# @return [Configurator]
def configuration
- @configuration ||= Configurator.new('~/.default-cliutils')
+ @@configuration ||= Configurator.new('~/.default-cliutils')
end
# Singleton method to return (or initialize, if needed)
# a Configurator.
# @param [String] path The filepath to use
# @return [void]
def load_configuration(path)
- @configuration = Configurator.new(path)
+ @@configuration = Configurator.new(path)
end
+ alias configuration= load_configuration
end
end