Class: Fastr::Settings
Instance Attribute Summary collapse
-
#cache_templates ⇒ Object
Returns the value of attribute cache_templates.
Instance Method Summary collapse
-
#initialize(app) ⇒ Settings
constructor
A new instance of Settings.
- #log_level=(level) ⇒ Object
- #plugins ⇒ Object
Methods included from Log
create_logger, included, level=
Constructor Details
#initialize(app) ⇒ 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_templates ⇒ Object
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 |
#plugins ⇒ Object
16 17 18 |
# File 'lib/fastr/settings.rb', line 16 def plugins @app.plugins end |