use center to create a comment: : Justify Center « String « Ruby
- Ruby
- String
- Justify Center
use center to create a comment:
filename = "hack.rb" # => "hack.rb"
filename.size # => 7
filename.center 40-7, "#" # => "#############hack.rb#############"
Related examples in the same category