Class: InstallGemLocal::Helper
- Inherits:
-
Object
- Object
- InstallGemLocal::Helper
- Defined in:
- lib/install_gem_local/helper.rb
Class Method Summary collapse
- .flash_message(title: "") ⇒ Object
- .prompt_options(options:, flash_message:, color: :green, selected_color: :bold, flash_color: :green) ⇒ Object
Class Method Details
.flash_message(title: "") ⇒ Object
14 15 16 17 18 19 20 21 22 23 24 |
# File 'lib/install_gem_local/helper.rb', line 14 def (title: "") # message = <<-STR # █████ ███████ █ # █ ██ █ # █ ██ █ # █ ██ ███ █ # █ ██ █ █ # █████ ███████ ███████ #{title} #STR title end |
.prompt_options(options:, flash_message:, color: :green, selected_color: :bold, flash_color: :green) ⇒ Object
4 5 6 7 8 9 10 11 12 |
# File 'lib/install_gem_local/helper.rb', line 4 def (options:, flash_message:, color: :green, selected_color: :bold, flash_color: :green) Downup::Base.new( flash_message: , options: , default_color: color, selected_color: selected_color, flash_color: flash_color, ).prompt end |