luislavena/win32console — Issue #11: 'can't dup Fixnum' error when using display method on fixnum
Author: banister
Created: 2011-10-13 02:32:24+00:00
State: open

```
irb(main):001:0> 5.display
5=> nil
irb(main):002:0> require 'win32console'
=> true
irb(main):003:0> 5.display
#: can't dup Fixnum
from C:/Ruby192/lib/ruby/gems/1.9.1/gems/win32console-1.3.0-x86-mingw32/
lib/Win32/Console/ANSI.rb:149:in `dup'
from C:/Ruby192/lib/ruby/gems/1.9.1/gems/win32console-1.3.0-x86-mingw32/
lib/Win32/Console/ANSI.rb:149:in `_PrintString'
from C:/Ruby192/lib/ruby/gems/1.9.1/gems/win32console-1.3.0-x86-mingw32/
lib/Win32/Console/ANSI.rb:137:in `block in write'
from C:/Ruby192/lib/ruby/gems/1.9.1/gems/win32console-1.3.0-x86-mingw32/
lib/Win32/Console/ANSI.rb:137:in `each'
from C:/Ruby192/lib/ruby/gems/1.9.1/gems/win32console-1.3.0-x86-mingw32/
lib/Win32/Console/ANSI.rb:137:in `write'
from (irb):3:in `display'
from (irb):3
from C:/Ruby192/bin/irb:12:in `

'
irb(main):004:0>
```