Class: Riddick::Backends::KeyValue
- Inherits:
-
Object
- Object
- Riddick::Backends::KeyValue
- Defined in:
- lib/riddick/backends/key_value.rb,
lib/riddick/backends/key_value/value.rb
Overview
Generic key-value backend (for custom translations).
Direct Known Subclasses
Defined Under Namespace
Classes: Value
Instance Attribute Summary collapse
-
#i18n_backend ⇒ Object
readonly
Returns the value of attribute i18n_backend.
Instance Method Summary collapse
-
#initialize(i18n_backend) ⇒ KeyValue
constructor
A new instance of KeyValue.
Constructor Details
#initialize(i18n_backend) ⇒ KeyValue
Returns a new instance of KeyValue.
7 8 9 |
# File 'lib/riddick/backends/key_value.rb', line 7 def initialize(i18n_backend) @i18n_backend = i18n_backend end |
Instance Attribute Details
#i18n_backend ⇒ Object (readonly)
Returns the value of attribute i18n_backend.
5 6 7 |
# File 'lib/riddick/backends/key_value.rb', line 5 def i18n_backend @i18n_backend end |