Ruby puts and p | Sololearn: Learn to code for FREE!
Новый курс! Каждый программист должен знать генеративный ИИ!
Попробуйте бесплатный урок
+ 1

Ruby puts and p

in Ruby what is the difference between p and puts?

22nd Nov 2021, 1:16 AM
Sigitas Janušauskas
Sigitas Janušauskas - avatar
1 ответ
+ 2
Run the following puts "hello" p "hello" You will see that p outputs a raw string showing the string notations
22nd Nov 2021, 2:35 AM
Rik Wittkopp
Rik Wittkopp - avatar