Class: CallLogger::Formatter
- Inherits:
-
Object
- Object
- CallLogger::Formatter
- Defined in:
- lib/call_logger/formatter.rb
Instance Method Summary collapse
-
#after(method, result) ⇒ Object
args?.
- #before(method, args) ⇒ Object
- #error(method, exception) ⇒ Object
Instance Method Details
#after(method, result) ⇒ Object
args?
8 9 10 |
# File 'lib/call_logger/formatter.rb', line 8 def after(method, result) "#{method} => #{result}" end |
#before(method, args) ⇒ Object
3 4 5 |
# File 'lib/call_logger/formatter.rb', line 3 def before(method, args) "#{method}(#{args.join(', ')})" end |
#error(method, exception) ⇒ Object
12 13 14 |
# File 'lib/call_logger/formatter.rb', line 12 def error(method, exception) "#{method} !! #{exception}" end |