lib/hexx/settings.rb in hexx-settings-0.1.0 vs lib/hexx/settings.rb in hexx-settings-0.2.0

- old
+ new

@@ -68,8 +68,18 @@ rescue LoadError filename << ".rb" unless filename[/\.rb$/] warn "You should provide the '#{ filename }' initializer" end + # Resets all settings + # + # @return [undefined] + # + def self.reset + instance.instance_variables.each do |variable| + instance.instance_variable_set variable, nil + end + end + end # class Settings end # module Hexx