Module: Mymemory

Includes:
ActiveSupport::Configurable
Defined in:
lib/mymemory.rb,
lib/mymemory/version.rb,
lib/mymemory/translation.rb

Defined Under Namespace

Classes: LanguageMissingError, Translation

Constant Summary collapse

VERSION =
'0.1.0'

Class Method Summary collapse

Class Method Details

.translate(text, opts) ⇒ Object

Mymemory.translate(text, :from => :en, :to => :it)



18
19
20
21
# File 'lib/mymemory.rb', line 18

def self.translate(text, opts)
  translation = Translation.new(text, opts)
  translation.translated_text
end