class Fir::UpArrowCommand
Public Class Methods
character_regex()
click to toggle source
# File lib/fir/key_command/up_arrow_command.rb, line 8 def self.character_regex [/^\e\[A$/, /\x10/] end
Public Instance Methods
execute_hook(new_state)
click to toggle source
# File lib/fir/key_command/up_arrow_command.rb, line 12 def execute_hook(new_state) new_state.history.up new_state end