Class: TTY::Prompt::List

Inherits:
Object
  • Object
show all
Defined in:
lib/commitgpt/string.rb

Overview

Monkey patch to add padding

Instance Method Summary collapse

Instance Method Details

#original_render_menuObject



10
# File 'lib/commitgpt/string.rb', line 10

alias original_render_menu render_menu

#render_menuObject

Override render_menu to add empty lines at the bottom



13
14
15
16
17
# File 'lib/commitgpt/string.rb', line 13

def render_menu
  output = original_render_menu
  # Add 2 empty lines at the bottom so menu doesn't stick to terminal edge
  "#{output}\n\n"
end