Class: WTFChord::Keyboard::Key

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#offsetObject

Returns the value of attribute offset

Returns:

  • (Object)

    the current value of offset



13
14
15
# File 'lib/wtf_chord/keyboard.rb', line 13

def offset
  @offset
end

#select_symbolObject

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