vendor/bundle/ruby/2.6.0/gems/lumberjack-1.2.8/lib/lumberjack/formatter.rb
# Find the formatter for a class by looking it up using the class hierarchy.
Find the formatter for a class by looking it up using the class hierarchy.
Find the formatter for a class by looking it up using the class hierarchy .
def formatter_for(klass) 
      check_modules = true
      until klass.nil?
        formatter = @class_formatters[klass.name]
        return formatter if formatter
        if check_modules
          _, formatter = @module_formatters.detect { |mod, f| klass.include?(mod) }
          check_modules = false
          return formatter if formatter
        end
        klass = klass.superclass
      end
    end
def formatter_for ( klass ) check_modules = true until klass . nil? formatter = @class_formatters [ klass . name ] return formatter if formatter if check_modules _ , formatter = @module_formatters . detect { | mod , f | klass . include? ( mod ) } check_modules = false return formatter if formatter end klass = klass . superclass end end
Find the formatter for a class by looking it up using the class hierarchy.
Find the formatter for a class by looking it up using the class hierarchy .
#:nodoc:
klass