Class: EasySync::SyncLogger
- Inherits:
-
Object
- Object
- EasySync::SyncLogger
- Defined in:
- lib/easy_sync/sync_logger.rb
Instance Attribute Summary collapse
-
#log ⇒ Object
readonly
Returns the value of attribute log.
Instance Method Summary collapse
- #info(message) ⇒ Object
-
#initialize(path) ⇒ SyncLogger
constructor
A new instance of SyncLogger.
Constructor Details
#initialize(path) ⇒ SyncLogger
Returns a new instance of SyncLogger.
9 10 11 |
# File 'lib/easy_sync/sync_logger.rb', line 9 def initialize(path) @log = Logger.new(path) end |
Instance Attribute Details
#log ⇒ Object (readonly)
Returns the value of attribute log.
7 8 9 |
# File 'lib/easy_sync/sync_logger.rb', line 7 def log @log end |
Instance Method Details
#info(message) ⇒ Object
13 14 15 16 |
# File 'lib/easy_sync/sync_logger.rb', line 13 def info() puts log.info end |