🖥
Ruby | Output only line feed
Solution
OK if you put it without passing an argument.
puts
Example
puts puts 'Gumi' puts puts 'Chocolate' puts puts 'Pine' puts
problem
For example, you may want to add a line break at the beginning of the text. However, the following writing should be overwhelmed.
puts "\nTEXT"
puts "\n" puts "TEXT"
The solution is as described above.
environment
- Ruby 2.3.0
Original by
About
チャットメンバー募集
何か質問、悩み事、相談などあればLINEオープンチャットもご利用ください。
公開日時
2019-04-16
Discussion