Module: Dawn::Utils

Included in:
Engine, Kb::BasicCheck, KnowledgeBase, KnowledgeBaseExperimental
Defined in:
lib/dawn/utils.rb

Instance Method Summary collapse

Instance Method Details

#__debug_me_and_return(msg, status) ⇒ Object



13
14
15
16
# File 'lib/dawn/utils.rb', line 13

def __debug_me_and_return(msg, status)
  $logger.debug(msg) if @debug
  return status
end

#debug_me(msg) ⇒ Object



3
4
5
# File 'lib/dawn/utils.rb', line 3

def debug_me(msg)
  $logger.debug(msg) if @debug
end

#debug_me_and_return_false(msg) ⇒ Object



10
11
12
# File 'lib/dawn/utils.rb', line 10

def debug_me_and_return_false(msg)
  __debug_me_and_return(msg, false)
end

#debug_me_and_return_true(msg) ⇒ Object



7
8
9
# File 'lib/dawn/utils.rb', line 7

def debug_me_and_return_true(msg)
  __debug_me_and_return(msg, true)
end