Sha256: f7fc2f729448f7543481393490f5325bc276ebe136870ea41f5368dce0e07731
Contents?: true
Size: 374 Bytes
Versions: 15
Compression:
Stored size: 374 Bytes
Contents
# frozen_string_literal: true module Delorean class Debug @debug_set = Set[] @log_file = '/tmp/delorean.log' def self.set_log_file(f) @log_file = f end def self.log(obj) File.open(@log_file, 'a+') do |f| f.write obj.inspect f.write "\n" end end class << self attr_reader :debug_set end end end
Version data entries
15 entries across 15 versions & 1 rubygems