Ruby, Programming, Ruby on Rails, Web Development.
to a text file and run the code in IRB or a console: Clearly there is a big different between the two outputs. #puts unpacks the array elements while print simply prints the array object Now, let’s try a different example to show another key difference between the two methods : When using #print,