Module: Karabiner::History
- Defined in:
- lib/karabiner/history.rb
Class Method Summary collapse
- .clear_histroy ⇒ Object
- .register_application(application) ⇒ Object
- .register_script(script) ⇒ Object
- .registered_applications ⇒ Object
- .registered_scripts ⇒ Object
Class Method Details
.clear_histroy ⇒ Object
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_applications ⇒ Object
17 18 19 |
# File 'lib/karabiner/history.rb', line 17 def self.registered_applications @@registered_applications ||= Set.new end |
.registered_scripts ⇒ Object
21 22 23 |
# File 'lib/karabiner/history.rb', line 21 def self.registered_scripts @@registered_scripts ||= Set.new end |