Class: Mobility::Backend::Translation
- Inherits:
-
Struct
- Object
- Struct
- Mobility::Backend::Translation
- Defined in:
- lib/mobility/backend.rb
Instance Attribute Summary collapse
-
#backend ⇒ Object
Returns the value of attribute backend.
-
#locale ⇒ Object
Returns the value of attribute locale.
Instance Method Summary collapse
Instance Attribute Details
#backend ⇒ Object
Returns the value of attribute backend
217 218 219 |
# File 'lib/mobility/backend.rb', line 217 def backend @backend end |
#locale ⇒ Object
Returns the value of attribute 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( = {}) backend.read(locale, ) end |
#write(value, options = {}) ⇒ Object
222 223 224 |
# File 'lib/mobility/backend.rb', line 222 def write(value, = {}) backend.write(locale, value, ) end |