Created
September 10, 2011 18:39
-
-
Save rogerbraun/1208628 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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