Class: Dat::Logger
- Inherits:
-
Object
- Object
- Dat::Logger
- Defined in:
- lib/dat/logger.rb
Defined Under Namespace
Classes: Log
Instance Method Summary collapse
- #[](lid) ⇒ Object
- #create(lid) ⇒ Object
-
#initialize(opt = {}) ⇒ Logger
constructor
A new instance of Logger.
Constructor Details
#initialize(opt = {}) ⇒ Logger
Returns a new instance of Logger.
3 4 5 6 |
# File 'lib/dat/logger.rb', line 3 def initialize(opt={}) @opt = opt.merge(:timed => true) @logs = {} end |