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
9
# File 'lib/rack/logs/config.rb', line 5

def initialize
  @pattern = '*.log'
  @log_dir = './log'
  @lines   = 200
end

Instance Attribute Details

#linesObject

Returns the value of attribute lines.



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

def lines
  @lines
end

#log_dirObject

Returns the value of attribute log_dir.



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

def log_dir
  @log_dir
end

#patternObject

Returns the value of attribute pattern.



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

def pattern
  @pattern
end