Class: ReplayedTTYMethods::ReplayedPrompt
- Inherits:
-
TTY::Prompt
- Object
- TTY::Prompt
- ReplayedTTYMethods::ReplayedPrompt
- Defined in:
- lib/clir/TTY-Prompt.cls.rb
Constant Summary collapse
- CODE_SUPER_OR_GET_INPUT =
"if %{truth}\n CLI::Replayer.get_input\nelse\n super.tap do |result|\n CLI::Replayer.add_input(result)\n end\nend\n"
Instance Method Summary collapse
-
#code_super(on) ⇒ Object
off) or to get input (if replayer is on).
Instance Method Details
#code_super(on) ⇒ Object
off) or to get input (if replayer is on)
124 125 126 |
# File 'lib/clir/TTY-Prompt.cls.rb', line 124 def code_super(on) CODE_SUPER_OR_GET_INPUT % {truth: on ? 'true' : 'false'} end |