Sha256: e16b62349355624ab2bbe075c4798e5fd73069997db2863db94cb03f5a4959e0
Contents?: true
Size: 541 Bytes
Versions: 1
Compression:
Stored size: 541 Bytes
Contents
module Mixlib module Authentication module NullLogger attr_accessor :level %i{debug info warn error fatal}.each do |method_name| class_eval(<<-METHOD_DEFN, __FILE__, __LINE__) def #{method_name}(msg=nil, &block) true end METHOD_DEFN end %i{debug? info? warn? error? fatal?}.each do |method_name| class_eval(<<-METHOD_DEFN, __FILE__, __LINE__) def #{method_name} false end METHOD_DEFN end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
mixlib-authentication-1.4.2 | lib/mixlib/authentication/null_logger.rb |