class Utils::Terminal
Public Class Methods
clear_screen()
click to toggle source
# File lib/tic_tac_toe/utils/terminal.rb, line 4 def clear_screen system('clear') || system('cls') end
get_input()
click to toggle source
# File lib/tic_tac_toe/utils/terminal.rb, line 8 def get_input val = gets.chomp val end
get_integer_input()
click to toggle source
# File lib/tic_tac_toe/utils/terminal.rb, line 14 def get_integer_input get_input.to_i end