Module: Doodle::Debug

Defined in:
lib/doodle.rb

Overview

debugging utilities

Class Method Summary collapse

Class Method Details

.d(&block) ⇒ Object

output result of block if ENV set



39
40
41
# File 'lib/doodle.rb', line 39

def d(&block)
  p(block.call) if ENV['DEBUG_DOODLE']
end