# Some issues with Ruby

**URL:** <https://rubytalk.org/t/some-issues-with-ruby/39475>\
**Category:** ruby-talk\
**Created:** [27 July 2007 19:58 UTC](https://rubytalk.org/t/some-issues-with-ruby/39475 "2007-07-27T19:58:34Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Alexandre\_Rosenfeld](https://avatars.discourse-cdn.com/v4/letter/a/9f8e36/32.png) [@Alexandre\_Rosenfeld](https://rubytalk.org/u/Alexandre_Rosenfeld)\
**Post date:** [27 July 2007 19:58 UTC](https://rubytalk.org/t/some-issues-with-ruby/39475/1 "2007-07-27T19:58:34Z")

</div>

Hi,

I'm having a couple of issues, unfortunately I couldn't find anything on  
the internet. I'm using Ubuntu 7.04, with Ruby 1.8 installed with  
Synaptic.

- My irb doesnt autocomplete objects. When I press TAB, it autocompletes  
paths, but not methods, variables, etc. I have readlines installed.

- When I want to use Gem packages, I have to "include 'rubygems'" before  
I can use any package. This wasnt the case in Windows, is it needed in  
Linux? Is there a way to avoid it?

- rbbr (Ruby Browser) can't find Gnome/Gtk class documentation. I tried  
both the separate documentation package and downloaded the rbbr with api  
package, but it doesnt show any documentation for Gnome classes. I had  
this problem with all my Ubuntu installations. How can I get Gnome  
classes documented in Ruby Browser?

Thanks

> **···**
>
> --  
> Posted via [http://www.ruby-forum.com/](http://www.ruby-forum.com/).

---

<div class="post-metadata">

**Author:** ![Joel\_VanderWerf1](https://avatars.discourse-cdn.com/v4/letter/j/94ad74/32.png) [@Joel\_VanderWerf1](https://rubytalk.org/u/Joel_VanderWerf1)\
**Post date:** [27 July 2007 20:15 UTC](https://rubytalk.org/t/some-issues-with-ruby/39475/2 "2007-07-27T20:15:38Z")

</div>

Alexandre Rosenfeld wrote:

> - My irb doesnt autocomplete objects. When I press TAB, it autocompletes  
> paths, but not methods, variables, etc. I have readlines installed.

Use this command:

&nbsp;&nbsp;irb -r irb/completion

OR put this line in your .irbrc file:

require 'irb/completion'

> - When I want to use Gem packages, I have to "include 'rubygems'" before  
> I can use any package. This wasnt the case in Windows, is it needed in  
> Linux? Is there a way to avoid it?

Put

export RUBYOPT='rubygems'

in your shell's env file (.zshenv for me).

> **···**
>
> --  
> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;vjoel : Joel VanderWerf : path berkeley edu : 510 665 3407

---

<div class="post-metadata">

**Author:** ![Alexandre\_Rosenfeld](https://avatars.discourse-cdn.com/v4/letter/a/9f8e36/32.png) [@Alexandre\_Rosenfeld](https://rubytalk.org/u/Alexandre_Rosenfeld)\
**Post date:** [27 July 2007 21:32 UTC](https://rubytalk.org/t/some-issues-with-ruby/39475/3 "2007-07-27T21:32:46Z")

</div>

Thanks a lot, it all worked very well.

Does anyone know how to fix the Gnome/Gtk documentation?

> **···**
>
> --  
> Posted via [http://www.ruby-forum.com/](http://www.ruby-forum.com/).
