Class: Redwing::Config
- Inherits:
-
Object
- Object
- Redwing::Config
- Defined in:
- lib/redwing/config.rb
Instance Attribute Summary collapse
-
#log_file ⇒ Object
Returns the value of attribute log_file.
- #logger ⇒ Object
-
#public_root ⇒ Object
Returns the value of attribute public_root.
-
#views_root ⇒ Object
Returns the value of attribute views_root.
Instance Method Summary collapse
-
#initialize ⇒ Config
constructor
A new instance of Config.
Constructor Details
#initialize ⇒ Config
Returns a new instance of Config.
8 9 10 11 12 |
# File 'lib/redwing/config.rb', line 8 def initialize @views_root = 'app/views' @log_file = 'log/redwing.log' @public_root = 'public' end |
Instance Attribute Details
#log_file ⇒ Object
Returns the value of attribute log_file.
5 6 7 |
# File 'lib/redwing/config.rb', line 5 def log_file @log_file end |
#logger ⇒ Object
14 15 16 |
# File 'lib/redwing/config.rb', line 14 def logger @logger ||= Redwing::Logger.create end |
#public_root ⇒ Object
Returns the value of attribute public_root.
5 6 7 |
# File 'lib/redwing/config.rb', line 5 def public_root @public_root end |
#views_root ⇒ Object
Returns the value of attribute views_root.
5 6 7 |
# File 'lib/redwing/config.rb', line 5 def views_root @views_root end |