Class: Fir::CtrlDCommand
- Inherits:
-
KeyCommand
- Object
- KeyCommand
- Fir::CtrlDCommand
- Defined in:
- lib/fir/key_command/ctrl_d_command.rb
Instance Attribute Summary
Attributes inherited from KeyCommand
Class Method Summary collapse
Instance Method Summary collapse
Methods inherited from KeyCommand
build, #execute, for, handles?, inherited, #initialize, register, registry
Constructor Details
This class inherits a constructor from Fir::KeyCommand
Class Method Details
.character_regex ⇒ Object
8 9 10 |
# File 'lib/fir/key_command/ctrl_d_command.rb', line 8 def self.character_regex /^\u0004$/ end |
Instance Method Details
#execute_hook(_) ⇒ Object
12 13 14 |
# File 'lib/fir/key_command/ctrl_d_command.rb', line 12 def execute_hook(_) exit(0) end |