module Deployable::Debug::Id
Public Instance Methods
debug(*vals) { || ... }
click to toggle source
# File lib/deployable/debug.rb, line 48 def debug *vals return unless $debug if block_given? yield else text = vals[0] printf "debug %12s: %-16s [%s]\n", @id, text, vals[1..-1].join('] [') end end
trace(*vals) { || ... }
click to toggle source
# File lib/deployable/debug.rb, line 58 def trace *vals return unless $trace if block_given? yield else text = vals[0] printf "trace %12s: %-16s [%s]\n", @id, text, vals[1..-1].join('] [') end end