lib/i18n/coverage/key_logger.rb in i18n-coverage-0.1.1 vs lib/i18n/coverage/key_logger.rb in i18n-coverage-0.2.0

- old
+ new

@@ -1,29 +1,17 @@ module I18n module Coverage class KeyLogger def self.store_key(key) - KeyLogger.new.store_key(key) + stored_keys.add(key) end def self.stored_keys - KeyLogger.new.stored_keys + @stored_keys ||= Set[] end def self.clear_keys - KeyLogger.new.clear_keys - end - - def store_key(key) - stored_keys.add(key) - end - - def clear_keys - stored_keys.clear - end - - def stored_keys - @@stored_keys ||= Set[] + stored_keys.clear end end end end