Class: Rack::Logs::Config
- Inherits:
-
Object
- Object
- Rack::Logs::Config
- Defined in:
- lib/rack/logs/config.rb
Instance Attribute Summary collapse
-
#log_dir ⇒ Object
Returns the value of attribute log_dir.
-
#pattern ⇒ Object
Returns the value of attribute pattern.
Instance Method Summary collapse
-
#initialize ⇒ Config
constructor
A new instance of Config.
Constructor Details
#initialize ⇒ Config
Returns a new instance of Config.
5 6 7 8 |
# File 'lib/rack/logs/config.rb', line 5 def initialize @pattern = '*.log' @log_dir = './log' end |
Instance Attribute Details
#log_dir ⇒ Object
Returns the value of attribute log_dir.
10 11 12 |
# File 'lib/rack/logs/config.rb', line 10 def log_dir @log_dir end |
#pattern ⇒ Object
Returns the value of attribute pattern.
10 11 12 |
# File 'lib/rack/logs/config.rb', line 10 def pattern @pattern end |