Sha256: 7bf9a979d7ab029c825ed98c60d34659411aa52449cf204f5a72942f4381a307
Contents?: true
Size: 280 Bytes
Versions: 5
Compression:
Stored size: 280 Bytes
Contents
module Slappy module Debuggable def self.included(klass) mod = Module.new do define_singleton_method :log do |message| Slappy.logger.try(:debug, "[#{klass.name}] #{message}") end end klass.const_set(:Debug, mod) end end end
Version data entries
5 entries across 5 versions & 1 rubygems