class SimpleDebugLogging

Public Class Methods

new(i_methods: nil) click to toggle source
Calls superclass method
# File lib/simple_debug_logging.rb, line 41
def initialize(i_methods: nil)
  super()
  @instance_methods_to_log = Array(i_methods) if i_methods
end

Public Instance Methods

included(base) click to toggle source
# File lib/simple_debug_logging.rb, line 46
def included(base)
  instance_method_logger = InstanceMethodLoggerModulizer.to_mod(@instance_methods_to_log)
  base.send(:prepend, instance_method_logger)
  base.send(:extend, ClassMethodLogger)
end