Module: Glaemscribe::API::Debug

Defined in:
lib/api/debug.rb

Class Method Summary collapse

Class Method Details

.enabled=(b) ⇒ Object



26
27
28
# File 'lib/api/debug.rb', line 26

def self.enabled=(b)
  @debug_mode = b
end

.log(s) ⇒ Object



30
31
32
# File 'lib/api/debug.rb', line 30

def self.log(s)
  puts s if @debug_mode
end