Module: CodebreakerRostik::ConsoleHelpers
- Included in:
- Console
- Defined in:
- lib/modules/console_helpers.rb
Constant Summary collapse
- EXIT =
'Exit'.freeze
Instance Method Summary collapse
Instance Method Details
#bye ⇒ Object
9 10 11 12 |
# File 'lib/modules/console_helpers.rb', line 9 def bye show_info(:goodbye) exit end |
#show_info(info, key = nil) ⇒ Object
5 6 7 |
# File 'lib/modules/console_helpers.rb', line 5 def show_info(info, key = nil) puts I18n.t(info, key) end |