Skip to content

Instantly share code, notes, and snippets.

@dakatsuka
Created June 18, 2011 13:25
Show Gist options
  • Save dakatsuka/1033094 to your computer and use it in GitHub Desktop.
Save dakatsuka/1033094 to your computer and use it in GitHub Desktop.
配列に入っている文字列を1文字ずつ逆順出力
["ABC", "DEF", "GHJ"].join("").split("").reverse.each {|str| puts str}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment