Class: WTFChord::Keyboard::Key
- Inherits:
-
Struct
- Object
- Struct
- WTFChord::Keyboard::Key
- Defined in:
- lib/wtf_chord/keyboard.rb,
lib/wtf_chord/keyboard.rb
Instance Attribute Summary collapse
-
#offset ⇒ Object
Returns the value of attribute offset.
-
#select_symbol ⇒ Object
Returns the value of attribute select_symbol.
Instance Method Summary collapse
Instance Attribute Details
#offset ⇒ Object
Returns the value of attribute offset
13 14 15 |
# File 'lib/wtf_chord/keyboard.rb', line 13 def offset @offset end |
#select_symbol ⇒ Object
Returns the value of attribute select_symbol.
15 16 17 |
# File 'lib/wtf_chord/keyboard.rb', line 15 def select_symbol @select_symbol end |
Instance Method Details
#select(frame) ⇒ Object
18 19 20 21 |
# File 'lib/wtf_chord/keyboard.rb', line 18 def select(frame) frame[offset] = self.class.select_symbol frame end |