Module: Hearken::Debug

Included in:
Library
Defined in:
lib/hearken/debug.rb

Instance Method Summary collapse

Instance Method Details

#debug(message) ⇒ Object



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

def debug(message)
  puts message if ENV["DEBUG"]
end

#pauseObject



9
10
11
12
13
14
# File 'lib/hearken/debug.rb', line 9

def pause
  if ENV["DEBUG"]
    puts "Hit enter to continue"
    gets
  end
end