Class: Delorean::Debug
- Inherits:
-
Object
- Object
- Delorean::Debug
- Defined in:
- lib/delorean/debug.rb
Class Method Summary collapse
Class Method Details
.debug_set ⇒ Object
18 19 20 |
# File 'lib/delorean/debug.rb', line 18 def self.debug_set @debug_set end |
.log(obj) ⇒ Object
10 11 12 13 14 15 16 |
# File 'lib/delorean/debug.rb', line 10 def self.log(obj) File.open(@log_file, 'a+') { |f| f.write obj.inspect f.write "\n" } end |
.set_log_file(f) ⇒ Object
6 7 8 |
# File 'lib/delorean/debug.rb', line 6 def self.set_log_file(f) @log_file = f end |