Class: Zedlocales::Simple
- Inherits:
-
Object
- Object
- Zedlocales::Simple
- Defined in:
- lib/zedlocales/simple.rb
Class Method Summary collapse
Class Method Details
.get(locale) {|reshh| ... } ⇒ Object
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 |