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