Class: WTFChord::KeyboardPresentation::KeyStruct
- Inherits:
-
Struct
- Object
- Struct
- WTFChord::KeyboardPresentation::KeyStruct
- Defined in:
- lib/wtf_chord/keyboard_presentation.rb
Instance Attribute Summary collapse
-
#index ⇒ Object
Returns the value of attribute index.
-
#mark ⇒ Object
writeonly
Sets the attribute mark.
Instance Method Summary collapse
Instance Attribute Details
#index ⇒ Object
Returns the value of attribute index
20 21 22 |
# File 'lib/wtf_chord/keyboard_presentation.rb', line 20 def index @index end |
#mark=(value) ⇒ Object
Sets the attribute mark
21 22 23 |
# File 'lib/wtf_chord/keyboard_presentation.rb', line 21 def mark=(value) @mark = value end |
Instance Method Details
#call(frame) ⇒ Object
24 25 26 |
# File 'lib/wtf_chord/keyboard_presentation.rb', line 24 def call(frame) frame[index, mark.length] = mark end |