Class: FakeSmith::Logger

Inherits:
Object
  • Object
show all
Defined in:
lib/fake_smith.rb

Instance Method Summary collapse

Constructor Details

#initializeLogger

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