Sha256: 8039388dca90c91a00ce47554168b97a5e812ca3163180a91ecc4f2779a56291

Contents?: true

Size: 344 Bytes

Versions: 12

Compression:

Stored size: 344 Bytes

Contents

require 'logger'
require 'lit/i18n_backend'
require 'lit/cache'

module Lit
  class Loader
    attr_accessor :cache
    attr_accessor :logger
    def initialize
      self.logger ||= Logger.new($stdout)
      self.logger.info "initializing Lit"
      self.cache ||= Cache.new
      I18n.backend = I18nBackend.new(self.cache)
    end

  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
lit-0.2.4 lib/lit/loader.rb
lit-0.2.3 lib/lit/loader.rb
lit-0.2.2 lib/lit/loader.rb
lit-0.2.1 lib/lit/loader.rb
lit-0.2.0 lib/lit/loader.rb
lit-0.1.0 lib/lit/loader.rb
lit-0.0.4.3 lib/lit/loader.rb
lit-0.0.4.2 lib/lit/loader.rb
lit-0.0.4.1 lib/lit/loader.rb
lit-0.0.4 lib/lit/loader.rb
lit-0.0.3.1 lib/lit/loader.rb
lit-0.0.3 lib/lit/loader.rb