Asp Forum
Home
|
Login
|
Register
|
Search
Forums
>
comp.lang.ruby
Rio/CVS tells me: undefined method '>'
Oliver Cromm
5/14/2008 10:08:00 PM
Rio with CVS didn't work as expected on my data, so I tried the examples
given at <
http://rio.rubyforge.org/classes/RIO/Doc/INTR...
I ran into the same problem. What's wrong? Does this work for anybody
else?
| $ irb
| irb(main):001:0> require 'rio'
| => true
| irb(main):002:0> rio('f.csv').puts!(["h0,h1","f0,f1"])
| => #<Rio:0x3ff2d5ac:"path:f.csv" (Stream::Reset)>
| irb(main):003:0> rio('f.csv').csv.records[]
| => [["h0", "h1"], ["f0", "f1"]]
| irb(main):004:0> rio('f.csv').csv[0] > rio('out').csv
| NoMethodError: undefined method `>' for [["h0", "h1"]]:Array
| from (irb):4
The following works correctly, though:
rio('f.csv').csv > rio('out').csv
Updating rio didn't help me. I'm at ruby 1.8.6 and rio 0.4.1 on cygwin.
I'll try to repeat on my FreeBSD server ... actually got around to
fixing the broken Ruby there and got the same response for rio, so it's
not a cygwin thing.
--
Bill Gates working as a waiter:
- Waiter, there's a fly in my soup
- Try again, maybe it won't be there this time
Servizio di avviso nuovi messaggi
Ricevi direttamente nella tua mail i nuovi messaggi per
Rio/CVS tells me: undefined method '>'
Inserendo la tua e-mail nella casella sotto, riceverai un avviso tramite posta elettronica ogni volta che il motore di ricerca troverà un nuovo messaggio per te
Il servizio è completamente GRATUITO!
x
Login to ForumsZone
Login with Google
Login with E-Mail & Password