lib/cli/mastermind.rb
# Asks the user to select a plan from the current list of plans.
#
# Repeated invokations of this command allow the user to traverse the plan tree.
#
# @return [Void]
Asks the user to select a plan from the current list of plans.
Repeated invokations of this command allow the user to traverse the plan tree.
Asks the user to select a plan from the current list of plans . Repeated invokations of this command allow the user to traverse the plan tree .
def do_interactive_plan_selection
        options = (@selected_plan || plans).map { |k,v| [titleize(k.to_s), v] }.to_h
        @selected_plan = select("Select a plan under #{@plan_stack.join('/')}", options: options)
        @plan_stack << titleize(@selected_plan.name)
      end
def do_interactive_plan_selection options = ( @selected_plan || plans ) . map { | k , v | [ titleize ( k . to_s ) , v ] } . to_h @selected_plan = select ( "Select a plan under #{@plan_stack.join('/')}" , options : options ) @plan_stack << titleize ( @selected_plan . name ) end
Asks the user to select a plan from the current list of plans.
Asks the user to select a plan from the current list of plans .
None
Void