Class: WTFChord::KeyboardPresentation::KeyStruct

Inherits:
Struct
  • Object
show all
Defined in:
lib/wtf_chord/keyboard_presentation.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#indexObject

Returns the value of attribute index

Returns:

  • (Object)

    the current value of index



20
21
22
# File 'lib/wtf_chord/keyboard_presentation.rb', line 20

def index
  @index
end

#mark=(value) ⇒ Object

Sets the attribute mark

Parameters:

  • value

    the value to set the attribute mark to.



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