Module: Worldwide::Cldr::FiberStorage

Defined in:
lib/worldwide/cldr.rb

Overview

Match i18n's config storage behavior, not Ruby's Fiber API.

Class Method Summary collapse

Class Method Details

.configObject



17
18
19
# File 'lib/worldwide/cldr.rb', line 17

def config
  Fiber[:i18n_config]
end

.config=(value) ⇒ Object



21
22
23
24
# File 'lib/worldwide/cldr.rb', line 21

def config=(value)
  Fiber[:i18n_config] = value
  value.owner = Fiber.current if value.respond_to?(:owner=) && !value.frozen?
end

.fallbacksObject



26
27
28
# File 'lib/worldwide/cldr.rb', line 26

def fallbacks
  Fiber[:i18n_fallbacks]
end

.fallbacks=(value) ⇒ Object



30
31
32
# File 'lib/worldwide/cldr.rb', line 30

def fallbacks=(value)
  Fiber[:i18n_fallbacks] = value
end