701 702 703 704 705 706 707 708 709 710
# File 'lib/rubyhacks.rb', line 701 def Log.log(*messages) # p 'wanting to log', @@log_file return nil unless @@log_file # return # return unless @@log_file # puts 'logging' messages.each do |message| File.open(@@log_file, 'a'){|file| file.puts message} end end