Module: Songbirdsh::Debug

Included in:
Library, Scrobbler
Defined in:
lib/songbirdsh/debug.rb

Instance Method Summary collapse

Instance Method Details

#debug(message) ⇒ Object



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

def debug message
  if ENV['DEBUG']
    puts message 
  end
end

#pauseObject



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

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