Class: I18n::Coverage::KeyLogger

Inherits:
Object
  • Object
show all
Defined in:
lib/i18n/coverage/key_logger.rb

Class Method Summary collapse

Class Method Details

.clear_keysObject



12
13
14
# File 'lib/i18n/coverage/key_logger.rb', line 12

def self.clear_keys
  stored_keys.clear
end

.store_key(key) ⇒ Object



4
5
6
# File 'lib/i18n/coverage/key_logger.rb', line 4

def self.store_key(key)
  stored_keys.add(key)
end

.stored_keysObject



8
9
10
# File 'lib/i18n/coverage/key_logger.rb', line 8

def self.stored_keys
  @stored_keys ||= Set[]
end