Skip to content

Instantly share code, notes, and snippets.

@ishideo
Last active February 18, 2019 06:44
Show Gist options
  • Save ishideo/a41274bceb84ca371a0c7d43d84c39ac to your computer and use it in GitHub Desktop.
Save ishideo/a41274bceb84ca371a0c7d43d84c39ac to your computer and use it in GitHub Desktop.
#!/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