Class: Redwing::Config

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfig

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_fileObject

Returns the value of attribute log_file.



5
6
7
# File 'lib/redwing/config.rb', line 5

def log_file
  @log_file
end

#loggerObject



14
15
16
# File 'lib/redwing/config.rb', line 14

def logger
  @logger ||= Redwing::Logger.create
end

#public_rootObject

Returns the value of attribute public_root.



5
6
7
# File 'lib/redwing/config.rb', line 5

def public_root
  @public_root
end

#views_rootObject

Returns the value of attribute views_root.



5
6
7
# File 'lib/redwing/config.rb', line 5

def views_root
  @views_root
end