Class: LearnOpen::Logger
- Inherits:
-
Object
- Object
- LearnOpen::Logger
- Defined in:
- lib/learn_open/services/logger.rb
Instance Method Summary collapse
-
#initialize(log_path) ⇒ Logger
constructor
A new instance of Logger.
- #log(message) ⇒ Object
Constructor Details
#initialize(log_path) ⇒ Logger
Returns a new instance of Logger.
5 6 7 8 |
# File 'lib/learn_open/services/logger.rb', line 5 def initialize(log_path) @log_path = log_path setup end |
Instance Method Details
#log(message) ⇒ Object
10 11 12 |
# File 'lib/learn_open/services/logger.rb', line 10 def log() File.write(log_path, ) end |