Module: ObsDeck

Defined in:
lib/obs_deck.rb,
lib/obs_deck/version.rb

Defined Under Namespace

Classes: Error

Constant Summary collapse

VERSION =
"0.1.0"

Class Method Summary collapse

Class Method Details

.start_menuObject



12
13
14
15
16
17
18
19
20
# File 'lib/obs_deck.rb', line 12

def self.start_menu
  prompt = TTY::Prompt.new
  prompt.select("menu") do |menu|
    menu.choice 'deck', -> { puts MyMethods.create_card(ObliqueStrategies.card) }
    menu.choice 'add a card', -> { ObliqueStrategies.add_a_card }
    menu.choice 'info', -> { ObliqueStrategies.info }
    menu.choice 'exit', -> { exit }
  end
end