# Command require

**URL:** <https://www.ruby-forum.com/t/command-require/189655>\
**Category:** Rails\
**Created:** [June 4, 2010, 3:30pm UTC](https://www.ruby-forum.com/t/command-require/189655 "2010-06-04T15:30:58Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Srinivas\_G](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/48db29/32.png) [@Srinivas\_G](https://www.ruby-forum.com/u/Srinivas_G)\
**Post date:** [June 4, 2010, 3:30pm UTC](https://www.ruby-forum.com/t/command-require/189655/1 "2010-06-04T15:30:58Z")

</div>

In Ruby there is a command called ‘require’. Explain what this command  
means and write an example of how it is used to include a Ruby Gem in  
a file.

---

<div class="post-metadata">

**Author:** ![Srinivas\_G](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/48db29/32.png) [@Srinivas\_G](https://www.ruby-forum.com/u/Srinivas_G)\
**Post date:** [June 4, 2010, 3:32pm UTC](https://www.ruby-forum.com/t/command-require/189655/2 "2010-06-04T15:32:43Z")

</div>

On Jun 4, 1:30 pm, Srinivas G. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> In Ruby there is a command called ‘require’. Explain what this command  
> means and write an example of how it is used to include a Ruby Gem in  
> a file.

This sounds an awful lot like homework. The ruby api docs are at  
[http://ruby-doc.org/core/](http://ruby-doc.org/core/)

Fred
