Class: InstallGemLocal::Helper

Inherits:
Object
  • Object
show all
Defined in:
lib/install_gem_local/helper.rb

Class Method Summary collapse

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 flash_message(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 prompt_options(options:, flash_message:, color: :green, selected_color: :bold, flash_color: :green)
  Downup::Base.new(
    flash_message: flash_message,
    options: options,
    default_color: color,
    selected_color: selected_color,
    flash_color: flash_color,
  ).prompt
end