Method: Interscript::Command#translit
- Defined in:
- lib/interscript/command.rb
#translit(input) ⇒ Object
Was this option really well thought out? The last parameter is a cache, isn’t it? option :map, aliases: ‘-m’, required: false, default: “{}”, desc: ‘Transliteration mapping json’
14 15 16 17 18 19 20 |
# File 'lib/interscript/command.rb', line 14 def translit(input) if [:output] Interscript.transliterate_file([:system], input, [:output]) #, JSON.parse(options[:map])) else puts Interscript.transliterate([:system], IO.read(input)) end end |