Skip to content

Instantly share code, notes, and snippets.

@takumikinjo
Created March 15, 2010 09:23
Show Gist options
  • Save takumikinjo/332657 to your computer and use it in GitHub Desktop.
Save takumikinjo/332657 to your computer and use it in GitHub Desktop.
def e2j(eng)
eng.downcase.gsub("east", "東").gsub("north", "北").gsub("south", "南").gsub("west", "西").gsub("e", "東").gsub("n", "北").gsub("s", "南").gsub("w", "西")
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment