# Problem with rio-0.3.4

**URL:** <https://rubytalk.org/t/problem-with-rio-0-3-4/22575>\
**Category:** ruby-talk\
**Created:** [18 November 2005 11:32 UTC](https://rubytalk.org/t/problem-with-rio-0-3-4/22575 "2005-11-18T11:32:52Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Wybo\_Dekker](https://avatars.discourse-cdn.com/v4/letter/w/ee59a6/32.png) [@Wybo\_Dekker](https://rubytalk.org/u/Wybo_Dekker)\
**Post date:** [18 November 2005 11:32 UTC](https://rubytalk.org/t/problem-with-rio-0-3-4/22575/1 "2005-11-18T11:32:52Z")

</div>

Running this script (named riotest) with rio-0.3.3:

require 'rubygems'  
require 'rio'  
puts rio('riotest').readlines

correctly says:

> ruby riotest

require 'rubygems'  
require 'rio'  
puts rio('riotest').readlines

But with rio-0.3.4 I get:

> ruby riotest

.../gems/1.8/gems/rio-0.3.4/lib/rio/ops/file.rb:62:  
&nbsp;&nbsp;uninitialized constant rio::ops::fileordir::existornot (nameerror)  
&nbsp;&nbsp;from ... /site\_ruby/1.8/rubygems/custom\_require.rb:21:  
&nbsp;&nbsp;in `require'  
&nbsp;&nbsp;from ... /gems/1.8/gems/rio-0.3.4/lib/rio/file.rb:39  
&nbsp;&nbsp;from ... /site\_ruby/1.8/rubygems/custom\_require.rb:21:  
&nbsp;&nbsp;in `require'  
&nbsp;&nbsp;from ... /gems/1.8/gems/rio-0.3.4/lib/rio/factory.rb:197:  
&nbsp;&nbsp;in `state2class'  
&nbsp;&nbsp;from ... /gems/1.8/gems/rio-0.3.4/lib/rio/factory.rb:206:  
&nbsp;&nbsp;in `try\_state\_proc'  
&nbsp;&nbsp;from ... /gems/1.8/gems/rio-0.3.4/lib/rio/state.rb:120:  
&nbsp;&nbsp;in `become'  
&nbsp;&nbsp;from ... /gems/1.8/gems/rio-0.3.4/lib/rio/path.rb:80:  
&nbsp;&nbsp;in `efile'  
&nbsp;&nbsp;from ... /gems/1.8/gems/rio-0.3.4/lib/rio/path.rb:65:  
&nbsp;&nbsp;in `when\_missing'  
&nbsp;&nbsp;from ... /gems/1.8/gems/rio-0.3.4/lib/rio/state.rb:134:  
&nbsp;&nbsp;in `method\_missing'  
&nbsp;&nbsp;from ... /gems/1.8/gems/rio-0.3.4/lib/rio/state.rb:136:  
&nbsp;&nbsp;in `method\_missing'  
&nbsp;&nbsp;from ... /gems/1.8/gems/rio-0.3.4/lib/rio/if/stream.rb:188:  
&nbsp;&nbsp;in `readlines'  
&nbsp;&nbsp;from riotest:3

> 

(I tweaked the output a little for clarity)

Any ideas?

> **···**
>
> --  
> Wybo
