Class: I18n::PostgresJson::KeyValue::Store

Inherits:
Object
  • Object
show all
Defined in:
lib/i18n/postgres_json/key_value/store.rb

Instance Method Summary collapse

Instance Method Details

#[](key) ⇒ Object



5
6
7
# File 'lib/i18n/postgres_json/key_value/store.rb', line 5

def [](key)
  record[escape(key)]
end

#[]=(key, value) ⇒ Object



9
10
11
# File 'lib/i18n/postgres_json/key_value/store.rb', line 9

def []=(key, value)
  record[escape(key)] = value
end

#keysObject



13
14
15
# File 'lib/i18n/postgres_json/key_value/store.rb', line 13

def keys
  record.keys
end