Module: CreateRubyGem::UI::BackNavigationPatch::PromptReadCharPatch Private
- Defined in:
- lib/create_ruby_gem/ui/back_navigation_patch.rb
Overview
This module is part of a private API. You should avoid using this module if possible, as it may be removed or be changed in the future.
Patch module prepended onto CLI::UI::Prompt.singleton_class.
Instance Method Summary collapse
-
#read_char ⇒ String
private
The character read.
Instance Method Details
#read_char ⇒ String
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 the character read.
21 22 23 24 25 26 27 |
# File 'lib/create_ruby_gem/ui/back_navigation_patch.rb', line 21 def read_char char = super raise BackKeyPressed if char == BackNavigationPatch::CTRL_B char end |