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

Version Path
delorean_lang-2.5.0 lib/delorean/debug.rb
delorean_lang-2.4.2 lib/delorean/debug.rb
delorean_lang-2.4.0 lib/delorean/debug.rb
delorean_lang-2.3.0 lib/delorean/debug.rb
delorean_lang-2.1.0 lib/delorean/debug.rb
delorean_lang-2.0.0 lib/delorean/debug.rb
delorean_lang-1.1.0 lib/delorean/debug.rb
delorean_lang-1.0.0 lib/delorean/debug.rb
delorean_lang-0.6.3 lib/delorean/debug.rb
delorean_lang-0.6.2 lib/delorean/debug.rb
delorean_lang-0.6.1 lib/delorean/debug.rb
delorean_lang-0.6.0 lib/delorean/debug.rb
delorean_lang-0.5.4 lib/delorean/debug.rb
delorean_lang-0.5.3 lib/delorean/debug.rb
delorean_lang-0.5.2 lib/delorean/debug.rb