On Jul 21, 2006, at 12:18 AM, Eric Armstrong wrote:

> #!/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
>
>
>

try running your script like this:

ruby -w <script>

I think you'll notice something interesting is happening when it gets  
to that line.