# Require statement for Lorax?

**URL:** <https://www.ruby-forum.com/t/require-statement-for-lorax/193236>\
**Category:** Ruby\
**Created:** [August 13, 2010, 8:21pm UTC](https://www.ruby-forum.com/t/require-statement-for-lorax/193236 "2010-08-13T20:21:46Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Xeno\_CSS\_Eskimo\_No](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/x/a9a28c/32.png) [@Xeno\_CSS\_Eskimo\_No](https://www.ruby-forum.com/u/Xeno_CSS_Eskimo_No)\
**Post date:** [August 13, 2010, 8:21pm UTC](https://www.ruby-forum.com/t/require-statement-for-lorax/193236/1 "2010-08-13T20:21:46Z")

</div>

I’ve installed Lorax, and looking around, I realize there is no example  
of a  
require statement. This is generally often left off I notice from docs,  
and  
presumably I can guess, but it seems like that is a good thing to  
include in  
intros to get people using stuff…

xc

---

<div class="post-metadata">

**Author:** ![Xeno\_CSS\_Eskimo\_No](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/x/a9a28c/32.png) [@Xeno\_CSS\_Eskimo\_No](https://www.ruby-forum.com/u/Xeno_CSS_Eskimo_No)\
**Post date:** [August 13, 2010, 10:18pm UTC](https://www.ruby-forum.com/t/require-statement-for-lorax/193236/2 "2010-08-13T22:18:18Z")

</div>

On Friday, August 13, 2010 01:18:21 pm Xeno C. / Eskimo North and  
Gmail  
wrote:

> I’ve installed Lorax, and looking around, I realize there is no example of  
> a require statement. This is generally often left off I notice from docs,  
> and presumably I can guess, but it seems like that is a good thing to  
> include in intros to get people using stuff…

Maybe so, but still, when I install a gem, unless I have reason to  
believe the  
require statement will be something else, I assume it’s the name of the  
gem.  
In fact, I think Rails/Bundler makes the same assumption:

[http://gembundler.com/gemfile.html](http://gembundler.com/gemfile.html)

“If a gem’s main file is different than the gem name, specify how to  
require  
it.”

Otherwise, it assumes that when you depend on the gem ‘foo’, you can  
require  
it by requiring ‘foo’.

Also, it may be valuable for newbies to read code, and this is an easy  
one to  
figure out:

> <https://github.com/flavorjones/lorax/blob/master/lib/lorax.rb>
