Allow print_more to print Array

This commit is contained in:
Brendan Coles
2019-02-17 04:37:12 +00:00
parent faafe7d68d
commit 027e312f30

View File

@@ -55,7 +55,12 @@ end
# @note The string passed needs to be separated by the "\n" for multiple lines to be printed
def print_more(s)
time = Time.now.localtime.strftime("[%k:%M:%S]")
lines = s.split("\n")
if s.class == Array
lines = s
else
lines = s.split("\n")
end
lines.each_with_index do |line, index|
if ((index+1) == lines.size)