Module: CallLogger::ClassMethods

Defined in:
lib/call_logger.rb

Instance Method Summary collapse

Instance Method Details

#log(method) ⇒ Object



33
34
35
36
37
38
39
40
# File 'lib/call_logger.rb', line 33

def log(method)
  alias_method "#{method}_without_log", method
  define_method method do |*args|
    log(method, args) do
      send("#{method}_without_log", *args)
    end
  end
end