# Gets command help --ruby

**URL:** <https://www.ruby-forum.com/t/gets-command-help-ruby/180146>\
**Category:** Ruby\
**Created:** [December 13, 2009, 10:18am UTC](https://www.ruby-forum.com/t/gets-command-help-ruby/180146 "2009-12-13T10:18:32Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![kgovinda](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/k/c68b51/32.png) [@kgovinda](https://www.ruby-forum.com/u/kgovinda)\
**Post date:** [December 13, 2009, 10:18am UTC](https://www.ruby-forum.com/t/gets-command-help-ruby/180146/1 "2009-12-13T10:18:32Z")

</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

---

<div class="post-metadata">

**Author:** ![kgovinda](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/k/c68b51/32.png) [@kgovinda](https://www.ruby-forum.com/u/kgovinda)\
**Post date:** [December 13, 2009, 10:38am UTC](https://www.ruby-forum.com/t/gets-command-help-ruby/180146/2 "2009-12-13T10:38:11Z")

</div>

On Sunday 13 December 2009 03:18:35 am Govinda K. 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?

How what?

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

> so can you explain  
> me on detail of gets

> **[LMGTFY - Let Me Google That For You](https://lmgtfy.app/?q=ruby%2Bgets&l=1)**
>
> For all those people who find it more convenient to bother you with their question rather than to Google it for themselves.

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?

---

<div class="post-metadata">

**Author:** ![kgovinda](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/k/c68b51/32.png) [@kgovinda](https://www.ruby-forum.com/u/kgovinda)\
**Post date:** [December 13, 2009, 10:35am UTC](https://www.ruby-forum.com/t/gets-command-help-ruby/180146/3 "2009-12-13T10:35:50Z")

</div>

On Sunday 13 December 2009, Govinda K. 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  
> |

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
