Thursday, May 2, 2024
 Popular · Latest · Hot · Upcoming
14
rated 0 times [  14] [ 0]  / answers: 1 / hits: 11666  / 1 Year ago, tue, may 9, 2023, 5:49:50

I have Installed Ruby On Rails of version 2.1.3p242 on my system. But I can't findout the ruby command line. I have searched but not found.



I have try to to check through




man ruby : Show some details



man rail : "See 'man 7 undocumented' for help when manual pages are not available."




May anybody help me to open the Ruby cmd line.


More From » ruby

 Answers
2

There are two ways of interactively using ruby on the command line (like running python or nodejs, for example):



Simply run ruby:



$ ruby
print "hello world
"


Then press CtrlD. You will see:



hello world


The easier way is Interactive Ruby (irb):



$ irb
irb(main):001:0> print "hello
"
hello
=> nil
irb(main):002:0>

[#22114] Thursday, May 11, 2023, 1 Year  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
lassrake

Total Points: 400
Total Questions: 103
Total Answers: 98

Location: Netherlands
Member since Mon, Jun 22, 2020
4 Years ago
;