# How to call the file?

**URL:** <https://www.ruby-forum.com/t/how-to-call-the-file/105086>\
**Category:** Rails\
**Created:** [May 25, 2007, 5:35pm UTC](https://www.ruby-forum.com/t/how-to-call-the-file/105086 "2007-05-25T17:35:22Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![selvaraj](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/8797f3/32.png) [@selvaraj](https://www.ruby-forum.com/u/selvaraj)\
**Post date:** [May 25, 2007, 5:35pm UTC](https://www.ruby-forum.com/t/how-to-call-the-file/105086/1 "2007-05-25T17:35:22Z")

</div>

```
  I have created one folder in lib called 'commands'. And i created

```

one file called get.rb inside that commands folder. How can i call that  
file from some other rb file.? Whether i need to use ‘include’ ? or any  
other best way ?

---

<div class="post-metadata">

**Author:** ![selvaraj](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/8797f3/32.png) [@selvaraj](https://www.ruby-forum.com/u/selvaraj)\
**Post date:** [May 25, 2007, 6:19pm UTC](https://www.ruby-forum.com/t/how-to-call-the-file/105086/2 "2007-05-25T18:19:17Z")

</div>

> ```
> I have created one folder in lib called 'commands'. And i created
> 
> ```
> 
> one file called get.rb inside that commands folder. How can i call that  
> file from some other rb file.? Whether i need to use ‘include’ ? or any  
> other best way ?

require ‘commands/get’

should do it.
