Class: I18n::Backend::RemoteBackend
- Inherits:
-
Object
- Object
- I18n::Backend::RemoteBackend
show all
- Includes:
- Implementation
- Defined in:
- lib/i18n/backend/remote_backend.rb,
lib/i18n/backend/remote_backend/loader.rb,
lib/i18n/backend/remote_backend/exceptions.rb,
lib/i18n/backend/remote_backend/configuration.rb,
lib/i18n/backend/remote_backend/implementation.rb
Defined Under Namespace
Modules: Implementation
Classes: BlankURLException, Configuration, InvalidURLException, Loader
Instance Attribute Summary
#store
Class Method Summary
collapse
#available_locales, #init_translations, #initialize, #initialized?, #store_translations, #translations
Class Method Details
.configuration ⇒ Object
12
13
14
|
# File 'lib/i18n/backend/remote_backend.rb', line 12
def configuration
@configuration ||= Configuration.new
end
|
16
17
18
|
# File 'lib/i18n/backend/remote_backend.rb', line 16
def configure
yield(configuration) if block_given?
end
|
.logger ⇒ Object
20
21
22
|
# File 'lib/i18n/backend/remote_backend.rb', line 20
def logger
@logger ||= defined?(Rails) ? Rails.logger : Logger.new($stdout)
end
|