Module: Karabiner::History

Defined in:
lib/karabiner/history.rb

Class Method Summary collapse

Class Method Details

.clear_histroyObject



4
5
6
7
# File 'lib/karabiner/history.rb', line 4

def self.clear_histroy
  registered_applications.clear
  registered_scripts.clear
end

.register_application(application) ⇒ Object



9
10
11
# File 'lib/karabiner/history.rb', line 9

def self.register_application(application)
  registered_applications.add(application)
end

.register_script(script) ⇒ Object



13
14
15
# File 'lib/karabiner/history.rb', line 13

def self.register_script(script)
  registered_scripts.add(script)
end

.registered_applicationsObject



17
18
19
# File 'lib/karabiner/history.rb', line 17

def self.registered_applications
  @@registered_applications ||= Set.new
end

.registered_scriptsObject



21
22
23
# File 'lib/karabiner/history.rb', line 21

def self.registered_scripts
  @@registered_scripts ||= Set.new
end