lt-ruby icon indicating copy to clipboard operation
lt-ruby copied to clipboard

Strange print // puts behavior

Open ErikAGriffin opened this issue 10 years ago • 0 comments

Hi, I am very new to Ruby as well as your instarepl, but this output seems strange to me.

Here is my test file, test.rb:

string = "hello" puts string + " help" print "hm.\n"

Which I expect would output: hello help hm.

However this is the output I'm getting image

This is a bug right? Print is evaluating before puts

ErikAGriffin avatar Jan 26 '15 22:01 ErikAGriffin