Sha256: c0dfa2d4894fbc428fe73830ea1b0354ef1c7347afcbb4a80a8d6e361b55ad4a
Contents?: true
Size: 623 Bytes
Versions: 26
Compression:
Stored size: 623 Bytes
Contents
require 'sfn' module Sfn module Utils # Debug helpers module Debug # Output helpers module Output # Write debug message # # @param msg [String] def debug(msg) if(ENV['DEBUG'] || (respond_to?(:config) && config[:debug])) puts "<sfn - debug>: #{msg}" end end end class << self # Load module into class # # @param klass [Class] def included(klass) klass.class_eval do include Output extend Output end end end end end end
Version data entries
26 entries across 26 versions & 1 rubygems