Class: Rack::Logs::Config

Inherits:
Object
  • Object
show all
Defined in:
lib/rack/logs/config.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfig

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_dirObject

Returns the value of attribute log_dir.



10
11
12
# File 'lib/rack/logs/config.rb', line 10

def log_dir
  @log_dir
end

#patternObject

Returns the value of attribute pattern.



10
11
12
# File 'lib/rack/logs/config.rb', line 10

def pattern
  @pattern
end