Class: Lit::Loader
- Inherits:
-
Object
- Object
- Lit::Loader
- Defined in:
- lib/lit/loader.rb
Instance Attribute Summary collapse
-
#cache ⇒ Object
Returns the value of attribute cache.
-
#logger ⇒ Object
Returns the value of attribute logger.
Instance Method Summary collapse
-
#initialize ⇒ Loader
constructor
A new instance of Loader.
Constructor Details
#initialize ⇒ Loader
Returns a new instance of Loader.
9 10 11 12 13 14 |
# File 'lib/lit/loader.rb', line 9 def initialize self.logger ||= Logger.new($stdout) self.logger.info 'initializing Lit' self.cache ||= Cache.new I18n.backend = I18nBackend.new(self.cache) end |
Instance Attribute Details
#cache ⇒ Object
Returns the value of attribute cache.
7 8 9 |
# File 'lib/lit/loader.rb', line 7 def cache @cache end |
#logger ⇒ Object
Returns the value of attribute logger.
8 9 10 |
# File 'lib/lit/loader.rb', line 8 def logger @logger end |