Skip to content

Instantly share code, notes, and snippets.

@rogerbraun
Created September 10, 2011 18:39
Show Gist options
  • Save rogerbraun/1208628 to your computer and use it in GitHub Desktop.
Save rogerbraun/1208628 to your computer and use it in GitHub Desktop.
require "romkan"
class WadokuEntry
def initialize(entry_as_string)
@str = entry_as_string
end
def kana
@str.split("\t")[1] # The reading is the second column in the file
end
def romaji
kana.to_roma
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment