Sha256: 27a2560b41d67a96f832bdd0d95e11320b6bb32b51158a69a09db39d7156090c

Contents?: true

Size: 385 Bytes

Versions: 6

Compression:

Stored size: 385 Bytes

Contents

require 'logger'
require 'lit/i18n_backend'
require 'lit/cache'
require 'lit/export'
require 'lit/import'

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

6 entries across 6 versions & 1 rubygems

Version Path
lit-0.4.0.pre.alpha.5 lib/lit/loader.rb
lit-0.4.0.pre.alpha.4 lib/lit/loader.rb
lit-0.4.0.pre.alpha.3 lib/lit/loader.rb
lit-0.4.0.pre.alpha.2 lib/lit/loader.rb
lit-0.4.0.pre.alpha.1 lib/lit/loader.rb
lit-0.4.0.pre.alpha lib/lit/loader.rb