Method: TTY::Reader::KeyEvent#key

Defined in:
lib/tty/reader/key_event.rb

#keyObject

Returns the value of attribute key

Returns:

  • (Object)

    the current value of key


19
20
21
# File 'lib/tty/reader/key_event.rb', line 19

def key
  @key
end