You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
15 lines
170 B
15 lines
170 B
3 years ago
|
def log(str, *args)
|
||
|
puts "#{str}"
|
||
|
args.each do |s|
|
||
|
puts " :: #{s}"
|
||
|
end
|
||
|
end
|
||
|
|
||
|
def debug(str, *args)
|
||
|
if DEBUG then
|
||
|
print "DEBUG :: "
|
||
|
log "#{str}", *args
|
||
|
end
|
||
|
end
|
||
|
|