Class: FakeSmith::Logger
- Inherits:
-
Object
- Object
- FakeSmith::Logger
- Defined in:
- lib/fake_smith.rb
Instance Method Summary collapse
-
#initialize ⇒ Logger
constructor
A new instance of Logger.
- #log(level) ⇒ Object
Constructor Details
#initialize ⇒ Logger
Returns a new instance of Logger.
50 51 52 |
# File 'lib/fake_smith.rb', line 50 def initialize @logs = {} end |
Instance Method Details
#log(level) ⇒ Object
54 55 56 |
# File 'lib/fake_smith.rb', line 54 def log(level) @logs[level] ||= [] end |