Class: Mobility::Backend::Translation

Inherits:
Struct
  • Object
show all
Defined in:
lib/mobility/backend.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#backendObject

Returns the value of attribute backend

Returns:

  • (Object)

    the current value of backend



217
218
219
# File 'lib/mobility/backend.rb', line 217

def backend
  @backend
end

#localeObject

Returns the value of attribute locale

Returns:

  • (Object)

    the current value of locale



217
218
219
# File 'lib/mobility/backend.rb', line 217

def locale
  @locale
end

Instance Method Details

#read(options = {}) ⇒ Object



218
219
220
# File 'lib/mobility/backend.rb', line 218

def read(options = {})
  backend.read(locale, options)
end

#write(value, options = {}) ⇒ Object



222
223
224
# File 'lib/mobility/backend.rb', line 222

def write(value, options = {})
  backend.write(locale, value, options)
end