Module: ExitComand
- Defined in:
- lib/obtenir/exit_command.rb
Class Method Summary collapse
Class Method Details
.exit ⇒ Object
2 3 4 5 |
# File 'lib/obtenir/exit_command.rb', line 2 def self.exit puts "Enter 0 to exit this program" return if gets.strip.to_i == 0 end |