class DictCache::Dict
Public Class Methods
translate(word)
click to toggle source
# File lib/dict_cache/dict.rb, line 5 def self.translate(word) Cache.with_cache do BingDictionary::Base.translate(word) end rescue StandardError error 'Translate Error: check your word is valid.' exit 1 end