Skip to content

Instantly share code, notes, and snippets.

@flada-auxv
Created November 10, 2012 09:14
Show Gist options
  • Save flada-auxv/4050528 to your computer and use it in GitHub Desktop.
Save flada-auxv/4050528 to your computer and use it in GitHub Desktop.
rubyでちょこっとテキスト処理https://codeiq.jp/ace/suginoy/q77
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