Class: Riddick::Backends::KeyValue

Inherits:
Object
  • Object
show all
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

Redis

Defined Under Namespace

Classes: Value

Instance Attribute Summary collapse

Instance Method Summary collapse

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_backendObject (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