Class: Rack::Logs::Config
- Inherits:
-
Object
- Object
- Rack::Logs::Config
- Defined in:
- lib/rack/logs/config.rb
Instance Attribute Summary collapse
-
#lines ⇒ Object
Returns the value of attribute lines.
-
#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 9 |
# File 'lib/rack/logs/config.rb', line 5 def initialize @pattern = '*.log' @log_dir = './log' @lines = 200 end |
Instance Attribute Details
#lines ⇒ Object
Returns the value of attribute lines.
11 12 13 |
# File 'lib/rack/logs/config.rb', line 11 def lines @lines end |
#log_dir ⇒ Object
Returns the value of attribute log_dir.
11 12 13 |
# File 'lib/rack/logs/config.rb', line 11 def log_dir @log_dir end |
#pattern ⇒ Object
Returns the value of attribute pattern.
11 12 13 |
# File 'lib/rack/logs/config.rb', line 11 def pattern @pattern end |