Class: I18n::Backend::RemoteBackend

Inherits:
Object
  • Object
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

Attributes included from Implementation

#store

Class Method Summary collapse

Methods included from Implementation

#available_locales, #init_translations, #initialize, #initialized?, #store_translations, #translations

Class Method Details

.configurationObject



12
13
14
# File 'lib/i18n/backend/remote_backend.rb', line 12

def configuration
  @configuration ||= Configuration.new
end

.configure {|configuration| ... } ⇒ Object

Yields:



16
17
18
# File 'lib/i18n/backend/remote_backend.rb', line 16

def configure
  yield(configuration) if block_given?
end

.loggerObject



20
21
22
# File 'lib/i18n/backend/remote_backend.rb', line 20

def logger
  @logger ||= defined?(Rails) ? Rails.logger : Logger.new($stdout)
end