lib/regexp-examples/config.rb in regexp-examples-1.5.0 vs lib/regexp-examples/config.rb in regexp-examples-1.5.1

- old
+ new

@@ -25,14 +25,14 @@ class << self def with_configuration(**new_config) original_config = config.dup begin - self.config = new_config + update_config(**new_config) result = yield ensure - self.config = original_config + update_config(**original_config) end result end @@ -46,10 +46,10 @@ end end private - def config=(**args) + def update_config(**args) Thread.current[:regexp_examples_config].merge!(args) end def config Thread.current[:regexp_examples_config] ||= {