# Gets command help --ruby

**URL:** <https://rubytalk.org/t/gets-command-help-ruby/56608>\
**Category:** ruby-talk\
**Created:** [13 December 2009 09:18 UTC](https://rubytalk.org/t/gets-command-help-ruby/56608 "2009-12-13T09:18:35Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Govinda\_Khanal](https://avatars.discourse-cdn.com/v4/letter/g/2acd7d/32.png) [@Govinda\_Khanal](https://rubytalk.org/u/Govinda_Khanal)\
**Post date:** [13 December 2009 09:18 UTC](https://rubytalk.org/t/gets-command-help-ruby/56608/1 "2009-12-13T09:18:35Z")

</div>

hi there, i am a learner of ruby and while i am writing a code i am  
stopped with input method. i search and found that gets is the command  
use to input from keyboard but i do not know how? so can you explain  
me on detail of gets and its member command.

thank you very much for your help

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

---

<div class="post-metadata">

**Author:** ![Stefano\_Crocco](https://avatars.discourse-cdn.com/v4/letter/s/5f9b8f/32.png) [@Stefano\_Crocco](https://rubytalk.org/u/Stefano_Crocco)\
**Post date:** [13 December 2009 09:33 UTC](https://rubytalk.org/t/gets-command-help-ruby/56608/2 "2009-12-13T09:33:20Z")

</div>

You can start with something like this:

puts "insert any text"  
res = gets

You can find more information about gets using the ri program:

ri Kernel.gets

Stefano

> **···**
>
> On Sunday 13 December 2009, Govinda Khanal wrote:
> 
> > \>hi there, i am a learner of ruby and while i am writing a code i am  
> > \>stopped with input method. i search and found that gets is the command  
> > \>use to input from keyboard but i do not know how? so can you explain  
> > \>me on detail of gets and its member command.  
> > \>  
> > \>  
> > \>  
> > \>thank you very much for your help  
> > \>

---

<div class="post-metadata">

**Author:** ![David\_Masover](https://avatars.discourse-cdn.com/v4/letter/d/50afbb/32.png) [@David\_Masover](https://rubytalk.org/u/David_Masover)\
**Post date:** [13 December 2009 09:35 UTC](https://rubytalk.org/t/gets-command-help-ruby/56608/3 "2009-12-13T09:35:37Z")

</div>

> hi there, i am a learner of ruby and while i am writing a code i am  
> stopped with input method. i search and found that gets is the command  
> use to input from keyboard but i do not know how?

How what?

How to get input from the keyboard? How to use gets?

> so can you explain  
> me on detail of gets

[http://lmgtfy.com/?q=ruby+gets&l=1](http://lmgtfy.com/?q=ruby+gets&l=1)

Did you really search that hard? The very first Google result I found is a  
tutorial that walks you through using gets, step by step, complete with  
screenshots!

> and its member command.

I have never, ever heard the term "member command", nor can I think of any  
reasonable situation where something could be both a member, and a command.

So again I have to ask, what do you mean?

> **···**
>
> On Sunday 13 December 2009 03:18:35 am Govinda Khanal wrote:
