Sha256: 71431e7d6b1714ad0dd464ca9a5e2a5a285fc7d4bf1bd07b160ecd8fff4469b4
Contents?: true
Size: 244 Bytes
Versions: 24
Compression:
Stored size: 244 Bytes
Contents
class Logger def initialize(log_to) end [:fatal, :info, :warn, :debug, :error].each do |method_name| define_method(method_name) do |text, &block| text = block.call if block `console[method_name](text);` end end end
Version data entries
24 entries across 24 versions & 1 rubygems