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


196
197
198
# File 'lib/mobility/backend.rb', line 196

def backend
  @backend
end

#localeObject

Returns the value of attribute locale

Returns:

  • (Object)

    the current value of locale


196
197
198
# File 'lib/mobility/backend.rb', line 196

def locale
  @locale
end

Instance Method Details

#read(options = {}) ⇒ Object


197
198
199
# File 'lib/mobility/backend.rb', line 197

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

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


201
202
203
# File 'lib/mobility/backend.rb', line 201

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