Last active
February 18, 2019 06:44
-
-
Save ishideo/a41274bceb84ca371a0c7d43d84c39ac to your computer and use it in GitHub Desktop.
This file contains hidden or 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
#!/usr/bin/env ruby | |
# -*- coding: utf-8 -*- | |
require_relative 'hepburn-romanization' | |
class Roman | |
def initialize(txt) | |
@arg = txt | |
end | |
def to_romaji | |
HepburnRomanization.to_romaji(@arg) | |
end | |
end | |
if $PROGRAM_NAME == __FILE__ | |
output = Roman.new($ARGV[0]) | |
p output.to_romaji | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment