Created
November 10, 2012 09:14
-
-
Save flada-auxv/4050528 to your computer and use it in GitHub Desktop.
rubyでちょこっとテキスト処理https://codeiq.jp/ace/suginoy/q77
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
separator = %Q(+#{"-" * ARGV.size}+) | |
result = ARGV.map do |arg| | |
[separator, "|" << arg.ljust(ARGV.size) << "|"] | |
end | |
puts result << separator |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment