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 options[:output]
    Interscript.transliterate_file(options[:system], input, options[:output]) #, JSON.parse(options[:map]))
  else
    puts Interscript.transliterate(options[:system], IO.read(input))
  end
end