Module: Echonest

Extended by:
Echonest
Included in:
Echonest
Defined in:
lib/echonest.rb,
lib/echonest/api.rb,
lib/echonest/version.rb,
lib/echonest/analysis.rb,
lib/echonest/response.rb,
lib/echonest/traditional_api_methods.rb

Defined Under Namespace

Modules: ApiMethods, TraditionalApiMethods Classes: Analysis, Api, Response

Constant Summary collapse

VERSION =
'0.1.3'

Instance Method Summary collapse

Instance Method Details

#debug(obj) ⇒ Object



18
19
20
21
22
23
24
25
26
# File 'lib/echonest.rb', line 18

def debug(obj)
  return unless debug?

  if obj.is_a?(String)
    puts obj
  else
    puts obj.inspect
  end
end

#debug?Boolean

MOAR DEBUGGING! *just for now

Returns:

  • (Boolean)


29
30
31
# File 'lib/echonest.rb', line 29

def debug?
  true || ENV['DEBUG']
end