Class: Fusuma::Runner
- Inherits:
-
Object
- Object
- Fusuma::Runner
- Defined in:
- lib/fusuma.rb
Overview
main class
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.run(option = {}) ⇒ Object
20 21 22 23 24 25 |
# File 'lib/fusuma.rb', line 20 def run(option = {}) set_trap (option) instance = new instance.run end |
Instance Method Details
#run ⇒ Object
71 72 73 74 75 76 77 78 79 80 |
# File 'lib/fusuma.rb', line 71 def run LibinputCommands.new.debug_events do |line| gesture_action = GestureAction.initialize_by(line, Device.names) next if gesture_action.nil? @action_stack ||= ActionStack.new @action_stack << gesture_action event_trigger = @action_stack.generate_event_trigger event_trigger.send_command unless event_trigger.nil? end end |