Class: YamlTranslator::Adapters::NoopAdapter

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

Instance Attribute Summary

Attributes inherited from BaseAdapter

#name

Instance Method Summary collapse

Methods inherited from BaseAdapter

#default_options, #initialize

Constructor Details

This class inherits a constructor from YamlTranslator::Adapters::BaseAdapter

Instance Method Details

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

Always return the text before translation

Parameters:

  • locale (Hash)

    texts of translate target

Returns:

  • (Hash)

    locale texts



7
8
9
# File 'lib/yaml-translator/adapters/noop_adapter.rb', line 7

def translate(values, options = {})
  values
end