Sha256: 0ec22072481c39531bc750a84fce355c4e2ea66d81af5612f12c1b7ea88ddca3

Contents?: true

Size: 341 Bytes

Versions: 27

Compression:

Stored size: 341 Bytes

Contents

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+') {
        |f|
        f.write obj.inspect
        f.write "\n"
      }
    end

    def self.debug_set
      @debug_set
    end
  end
end

Version data entries

27 entries across 27 versions & 1 rubygems

Version Path
delorean_lang-0.5.1 lib/delorean/debug.rb
delorean_lang-0.5.0 lib/delorean/debug.rb
delorean_lang-0.4.8 lib/delorean/debug.rb
delorean_lang-0.4.7 lib/delorean/debug.rb
delorean_lang-0.4.6 lib/delorean/debug.rb
delorean_lang-0.4.5 lib/delorean/debug.rb
delorean_lang-0.4.4 lib/delorean/debug.rb
delorean_lang-0.4.2 lib/delorean/debug.rb
delorean_lang-0.4.1 lib/delorean/debug.rb
delorean_lang-0.4.00 lib/delorean/debug.rb
delorean_lang-0.3.38 lib/delorean/debug.rb
delorean_lang-0.3.37 lib/delorean/debug.rb
delorean_lang-0.3.36 lib/delorean/debug.rb
delorean_lang-0.3.35 lib/delorean/debug.rb
delorean_lang-0.3.34 lib/delorean/debug.rb
delorean_lang-0.3.33 lib/delorean/debug.rb
delorean_lang-0.3.32 lib/delorean/debug.rb
delorean_lang-0.3.31 lib/delorean/debug.rb
delorean_lang-0.3.30 lib/delorean/debug.rb
delorean_lang-0.3.29 lib/delorean/debug.rb