I've just been using irb, which works, but I'd prefer to figure out what I am doing wrong with ruby in the command line.
Googling pretty much exclusively suggests irb.
Example, including me guessing at solutions:
$ ruby
i = 67
x = 68
x - i
puts x - i
run
ruby
ruby i
ruby i - x
ruby puts i - x
ruby puts 1
puts 1
^C-: Interrupt
I've just been using
irb, which works, but I'd prefer to figure out what I am doing wrong withrubyin the command line.Googling pretty much exclusively suggests
irb.Example, including me guessing at solutions:
$ rubyi = 67x = 68x - iputs x - irunrubyruby iruby i - xruby puts i - xruby puts 1puts 1^C-: Interrupt