in ,

🧑🏻‍💻 TechAcademy | Active engineers explain how to use Ruby's puts method [for beginners]

An active engineer explains how to use Ruby's puts method [for beginners]

I will explain how to use the puts method of Ruby.

 
If you're not familiar with Ruby in the first place, you can read the article that explains what Ruby is for a deeper understanding.

This article is based on the contents of the Ruby course of TechAcademy's online boot camp.

 

 

What is the puts method

Ruby's puts method outputs the argument object as standard output.At this time, the object that is the argument is converted to a character string.

 

How to use puts method

How to use puts method

 

puts ("xxx")

() Is not necessary

 

puts "xxx"

But it's OK.

 

[PR] We are showing a video of learning methods that will not frustrate Ruby programming

Let's actually write

Let's actually write it.

 

puts 100
# => ...

→See more in Tech Tech Magazine