Class: Fastr::Settings

Inherits:
Object
  • Object
show all
Includes:
Log
Defined in:
lib/fastr/settings.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Log

create_logger, included, level=

Constructor Details

#initialize(app) ⇒ Settings

Returns a new instance of Settings.



7
8
9
10
# File 'lib/fastr/settings.rb', line 7

def initialize(app)
  @app = app
  @cache_templates = true
end

Instance Attribute Details

#cache_templatesObject

Returns the value of attribute cache_templates.



5
6
7
# File 'lib/fastr/settings.rb', line 5

def cache_templates
  @cache_templates
end

Instance Method Details

#log_level=(level) ⇒ Object



12
13
14
# File 'lib/fastr/settings.rb', line 12

def log_level=(level)
  Fastr::Log.level = level
end

#pluginsObject



16
17
18
# File 'lib/fastr/settings.rb', line 16

def plugins
  @app.plugins
end