Class: I18n::Tasks::Translators::YandexTranslator
- Inherits:
-
BaseTranslator
- Object
- BaseTranslator
- I18n::Tasks::Translators::YandexTranslator
- Defined in:
- lib/i18n/tasks/translators/yandex_translator.rb
Constant Summary
Constants included from Logging
Logging::MUTEX, Logging::PROGRAM_NAME
Instance Method Summary collapse
-
#initialize ⇒ YandexTranslator
constructor
A new instance of YandexTranslator.
Methods inherited from BaseTranslator
Methods included from Logging
log_error, log_stderr, log_verbose, log_warn, program_name, warn_deprecated
Constructor Details
#initialize ⇒ YandexTranslator
Returns a new instance of YandexTranslator.
7 8 9 10 11 12 13 14 |
# File 'lib/i18n/tasks/translators/yandex_translator.rb', line 7 def initialize(*) begin require 'yandex-translator' rescue LoadError raise ::I18n::Tasks::CommandError, "Add gem 'yandex-translator' to your Gemfile to use this command" end super end |