Ruby vertical writing

How to write vertically with ruby

Conclusion

python


a = gets.chars
puts a

For example, if you apply tokyo to gets as shown below

python


a = Tokyo.chars
puts a

Output result

python


T
o
k
y
o

It will be like

that's all

Recommended Posts

Ruby vertical writing
Writing code Ruby
Ruby Learning # 27 Writing Files
[Note] [Beginner] Ruby writing memo (refactoring) 1
Ruby learning 4
[Ruby] Array
Ruby basics
Ruby learning 5
[Ruby] Writing notes for cherry books [Notes for yourself]
Ruby basics
Ruby Review 2
Differences in writing in Ruby, PHP, Java, JS
Ruby addition
Refactoring Ruby
Ruby learning 3
Ruby setting 2
Ruby problem ⑦
Ruby learning 2
[Ruby] Block
Refactoring Ruby
ruby calculator
Ruby learning 6
Ruby settings 1
Refactoring Ruby
Ruby basics
Ruby memo
Ruby learning 1
Ruby Review 1
[Ruby] Module