class DebuggerXml::Vim::Logger

Public Class Methods

new(logger_file) click to toggle source
# File lib/debugger_xml/vim/logger.rb, line 4
def initialize(logger_file)
  @logger_file = logger_file
end

Public Instance Methods

puts(string) click to toggle source
# File lib/debugger_xml/vim/logger.rb, line 8
def puts(string)
  File.open(@logger_file, 'a') do |f|
    # match vim redir style new lines, rather than trailing
    f << "\ndebugger-xml, #{Time.now.strftime("%H:%M:%S")} : #{string.chomp}"
  end
end