lib/thermite/util.rb in thermite-0.4.0 vs lib/thermite/util.rb in thermite-0.5.0
- old
+ new
@@ -21,9 +21,12 @@
module Thermite
#
# Utility methods
#
module Util
+ #
+ # Logs a debug message to the specified `config.debug_filename`, if set.
+ #
def debug(msg)
# Should probably replace with a Logger
if config.debug_filename
@debug ||= File.open(config.debug_filename, 'w')
@debug.write("#{msg}\n")