Class: Teemill::Debug

Inherits:
Object
  • Object
show all
Defined in:
lib/debug.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#debug_modeObject

Returns the value of attribute debug_mode.


5
6
7
# File 'lib/debug.rb', line 5

def debug_mode
  @debug_mode
end

Class Method Details

.log(string, color) ⇒ Object


7
8
9
10
11
# File 'lib/debug.rb', line 7

def self.log(string, color)
  return unless Teemill.debug_mode

  STDERR.puts string.public_send(color)
end