Ruby study notes (puts)

Overview

I learned about Ruby in class, so make a note. This time, I mainly investigated the difference between the'p',' puts', and'print' methods used when outputting numbers and character strings, so I will describe how.

Method new line Display argument type information
p o o
puts o x
print x x

Also, with the p method, when you output with the argument "Hellow World", the quotation marks at both ends are also output.

Reference page

I(puts)]https://qiita.com/Chinats/items/c464c3a88c263f15224b

Recommended Posts

Ruby study notes (puts)
Ruby study notes (variables & functions)
Jigsaw study notes
JavaFX study notes
Ruby Hash notes
Docker study notes
[Java] Study notes
Ruby Thread # [] = method notes
Maven basic study notes
Ruby study memo (conditional branching)
Ruby study memo (recursive function)
[Ruby] Notes on gets method
ruby exercise memo I (puts)
[Ruby ~ Iterative processing ~] Study memo 4
Ruby Study Memo (Test Driven Development)
Internal class and lambda study notes
Note: Difference between Ruby "p" and "puts"
[Ruby] Writing notes for cherry books [Notes for yourself]
Ruby print puts p printf output method
Notes on using FCM with Ruby on Rails
Spring Framework study notes [Part 1] DI container
[Ruby] Difference between print, puts and p