Class: YamlTranslator::Adapters::BaseAdapter

Inherits:
Object
  • Object
show all
Defined in:
lib/yaml-translator/adapters/base_adapter.rb

Direct Known Subclasses

GoogleTranslateAdapter, NoopAdaptor

Instance Method Summary collapse

Instance Method Details

#default_optionsObject



8
9
10
# File 'lib/yaml-translator/adapters/base_adapter.rb', line 8

def default_options
  { to: :en }
end

#translate(values, options = {}) ⇒ Object



4
5
6
# File 'lib/yaml-translator/adapters/base_adapter.rb', line 4

def translate(values, options={})
  raise 'Translation processing is not implemented'
end