Class: Vvm::CLI::Command::ConfirmDispsense

Inherits:
Base
  • Object
show all
Defined in:
lib/vvm/cli/command/confirm_dispense.rb

Instance Attribute Summary

Attributes inherited from Base

#env

Instance Method Summary collapse

Methods inherited from Base

by_command_name, inherited, #initialize

Constructor Details

This class inherits a constructor from Vvm::CLI::Command::Base

Instance Method Details

#call(formatted_coins:) ⇒ Object



9
10
11
12
13
# File 'lib/vvm/cli/command/confirm_dispense.rb', line 9

def call(formatted_coins:)
  prompt.ok "You've got: #{formatted_coins} coins"

  prompt.yes?('Would you like to return to main menu?') ? env.call(:show_main_menu) : exit
end