Class: Zedlocales::Simple

Inherits:
Object
  • Object
show all
Defined in:
lib/zedlocales/simple.rb

Class Method Summary collapse

Class Method Details

.get(locale) {|reshh| ... } ⇒ Object

Yields:

  • (reshh)


20
21
22
23
24
# File 'lib/zedlocales/simple.rb', line 20

def get(locale)
  reshh = Zedkit::Client.get("locales/#{locale}/content", nil)
  yield(reshh) if (not reshh.nil?) && block_given?
  reshh
end

.set(locale, content) ⇒ Object



26
27
28
# File 'lib/zedlocales/simple.rb', line 26

def set(locale, content)
  set_locale_in_simple_backend(locale, content)
end