# Fib\_example.rb

**URL:** <https://www.ruby-forum.com/t/fib-example-rb/85195>\
**Category:** Ruby\
**Created:** [February 11, 2007, 4:21am UTC](https://www.ruby-forum.com/t/fib-example-rb/85195 "2007-02-11T04:21:23Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Rae](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/c37758/32.png) [@Rae](https://www.ruby-forum.com/u/Rae)\
**Post date:** [February 11, 2007, 4:21am UTC](https://www.ruby-forum.com/t/fib-example-rb/85195/1 "2007-02-11T04:21:23Z")

</div>

I am reading the Programming Ruby book by Dave T. (2nd edition)  
and he mentions a trick when you want to use irb to try example code  
and directs you how to load “code/rdoc/fib\_example.rb”. I just  
downloaded the latest version of Ruby and I can’t find any such file.  
I also can’t find a code folder or is “code” as used in that line a  
programming directive?

---

<div class="post-metadata">

**Author:** ![Rae](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/c37758/32.png) [@Rae](https://www.ruby-forum.com/u/Rae)\
**Post date:** [February 11, 2007, 4:25am UTC](https://www.ruby-forum.com/t/fib-example-rb/85195/2 "2007-02-11T04:25:23Z")

</div>

On 2/10/07, Rae [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> I am reading the Programming Ruby book by Dave T. (2nd edition)  
> and he mentions a trick when you want to use irb to try example code  
> and directs you how to load “code/rdoc/fib\_example.rb”. I just  
> downloaded the latest version of Ruby and I can’t find any such file.  
> I also can’t find a code folder or is “code” as used in that line a  
> programming directive?

Not 100% sure, so I apologize in advance if I’m wrong. (It happens quite  
frequently, as a matter of fact.) In any case, the ‘code’ for the book  
is  
at:

[http://www.pragmaticprogrammer.com/titles/ruby/code/index.html](http://www.pragmaticprogrammer.com/titles/ruby/code/index.html)

## I’m not sure if they’re referring to that or not, but just in case, there it is. 🙂

Samantha

[http://www.babygeek.org/](http://www.babygeek.org/)

“Beware when the great God lets loose a thinker on this planet. Then all  
things are at risk.”  
–Ralph Waldo Emerson
