Skip to content

Instantly share code, notes, and snippets.

@moreta
Created October 23, 2012 15:17
Show Gist options
  • Save moreta/3939360 to your computer and use it in GitHub Desktop.
Save moreta/3939360 to your computer and use it in GitHub Desktop.
ruby japaness helper
# encoding: utf-8
s = "こんにちは"
puts s.tr("あ-ん", "ア-ン")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment