Sha256: 35738616ff4a592794bc3b6f11cef1f3e6ca4618c7e186f0752c1cb8b42c4fd6
Contents?: true
Size: 744 Bytes
Versions: 3
Compression:
Stored size: 744 Bytes
Contents
#encoding: UTF-8 module Termit class OutputManager def display_error_info puts "TERMIT: Wrong data. Example: 'termit en es the cowboy ' => 'el vaquero" end def display_help puts <<-EOS =========TERMIT========= Usage: termit 'source_language' 'target_language' 'text' Example: termit en fr 'hey cowboy where is your horse?' => 'hey cow-boy ou est votre cheval?' Options: -t - speech synthesis -s - synonyms list Check docs at: github.com/pawurb/termit EOS end def display_version puts "Termit #{Termit::VERSION}" end def display_translation text print "=> " puts text end def display_synonyms synonyms print '=> Synonyms: ' puts synonyms end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
termit-2.0.5 | lib/termit/output_manager.rb |
termit-2.0.4 | lib/termit/output_manager.rb |
termit-2.0.3 | lib/termit/output_manager.rb |