E
Eric Armstrong
#!/usr/bin/env ruby
require 'curses'
include Curses
i = 60
# Works
puts (i / 60).to_s
# Works
if (i % 60 == 0) then
puts (i / 60).to_s
end
# Works
addstr (i / 60).to_s
# Error: in `addstr': can't convert Fixnum to string
if (i % 60 == 0) then
addstr (i / 60).to_s
end
require 'curses'
include Curses
i = 60
# Works
puts (i / 60).to_s
# Works
if (i % 60 == 0) then
puts (i / 60).to_s
end
# Works
addstr (i / 60).to_s
# Error: in `addstr': can't convert Fixnum to string
if (i % 60 == 0) then
addstr (i / 60).to_s
end