Class: Tinet::Setting
- Inherits:
-
Object
- Object
- Tinet::Setting
- Defined in:
- lib/tinet/setting.rb
Constant Summary collapse
- ROOT =
File.(File.join(File.dirname(__FILE__), '..', '..'))
- DEFAULT_SPECFILE_PATH =
'./spec.yml'.freeze
Instance Method Summary collapse
- #logger ⇒ Logger
- #logger=(logger) ⇒ Logger
- #namespace ⇒ String
- #namespace=(namespace) ⇒ String
- #root ⇒ String
Instance Method Details
#logger ⇒ Logger
25 26 27 28 29 30 |
# File 'lib/tinet/setting.rb', line 25 def logger @logger ||= Logger.new($stderr).tap do |logger| logger.formatter = proc { |_sev, _dtm, _name, | + "\n" } logger.level = Logger::INFO end end |
#logger=(logger) ⇒ Logger
34 35 36 |
# File 'lib/tinet/setting.rb', line 34 def logger=(logger) @logger = logger end |
#namespace ⇒ String
14 15 16 |
# File 'lib/tinet/setting.rb', line 14 def namespace @namespace ||= 'tinet' end |
#namespace=(namespace) ⇒ String
20 21 22 |
# File 'lib/tinet/setting.rb', line 20 def namespace=(namespace) @namespace = namespace end |