Module: Triggerino::ButtonActionable
Instance Method Summary collapse
- #bind_events ⇒ Object
- #button_down ⇒ Object
- #button_up ⇒ Object
- #initialize(action_list, button) ⇒ Object
Instance Method Details
#bind_events ⇒ Object
9 10 11 12 |
# File 'lib/triggerino/button_actionable.rb', line 9 def bind_events @button.down { } @button.up { } end |
#button_down ⇒ Object
14 15 16 |
# File 'lib/triggerino/button_actionable.rb', line 14 def raise 'Not implemented' end |
#button_up ⇒ Object
18 19 20 |
# File 'lib/triggerino/button_actionable.rb', line 18 def raise 'Not implemented' end |
#initialize(action_list, button) ⇒ Object
3 4 5 6 7 |
# File 'lib/triggerino/button_actionable.rb', line 3 def initialize action_list, @action_list = action_list @button = bind_events end |