Difference between put and println in Ruby with examples
February 28, 2022 · 1 min read
As you know print and puts are used to display data to console. put and print are functions defined in io class in Ruby. These objects print the arguments to console and return nil What is difference between puts and print, when to use print and puts? Difference between put and print puts and prints function used to print an object to console. In case of Singe arguments to this two functions, it adds the same output....