module UltraMarathon::Logging::ClassMethods
Public Instance Methods
logger_class()
click to toggle source
If the instance variable is callable, the result of invoking that block is set to be the instance variable. Otherwise returns it, defaulting to the included Logger
class
# File lib/ultra_marathon/logging.rb, line 22 def logger_class if @logger_class.respond_to? :call @logger_class = @logger_class.call else @logger_class ||= Logger end end
Private Instance Methods
log_class(log_class)
click to toggle source
Sets the log class. Can take a callable object or class
# File lib/ultra_marathon/logging.rb, line 35 def log_class(log_class) @logger_class = log_class end