Class: TTY::Reader::Key Private
- Inherits:
-
Struct
- Object
- Struct
- TTY::Reader::Key
- Defined in:
- lib/tty/reader/key_event.rb
Overview
This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.
Responsible for meta-data information about key pressed
Instance Attribute Summary collapse
-
#ctrl ⇒ Object
Returns the value of attribute ctrl.
-
#meta ⇒ Object
Returns the value of attribute meta.
-
#name ⇒ Object
Returns the value of attribute name.
-
#shift ⇒ Object
Returns the value of attribute shift.
Instance Method Summary collapse
-
#initialize ⇒ Key
constructor
private
A new instance of Key.
Constructor Details
#initialize ⇒ Key
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Returns a new instance of Key.
11 12 13 |
# File 'lib/tty/reader/key_event.rb', line 11 def initialize(*) super(nil, false, false, false) end |
Instance Attribute Details
#ctrl ⇒ Object
Returns the value of attribute ctrl
10 11 12 |
# File 'lib/tty/reader/key_event.rb', line 10 def ctrl @ctrl end |
#meta ⇒ Object
Returns the value of attribute meta
10 11 12 |
# File 'lib/tty/reader/key_event.rb', line 10 def @meta end |
#name ⇒ Object
Returns the value of attribute name
10 11 12 |
# File 'lib/tty/reader/key_event.rb', line 10 def name @name end |
#shift ⇒ Object
Returns the value of attribute shift
10 11 12 |
# File 'lib/tty/reader/key_event.rb', line 10 def shift @shift end |