watson-ruby icon indicating copy to clipboard operation
watson-ruby copied to clipboard

Replace Identify line in each method with method_added call [lib/watson.rb]

Open nhmood opened this issue 11 years ago • 0 comments

filename : lib/watson.rb line # : 25 tag : todo md5 : c53b361c0321aa080aad1df039a731c1

# [todo] - Replace Identify line in each method with method_added call
#          http://ruby-doc.org/core-2.0.0/Module.html#method-i-method_added
    # Separate ON and OFF so we can force state and still let 
# individual classes have some control over their prints
    # Global flag to turn ON debugging across all files
GLOBAL_DEBUG_ON = false
# Gllobal flag to turn OFF debugging across all files
GLOBAL_DEBUG_OFF = false 
    # [review] - Not sure if module_function is proper way to scope
# I want to be able to call debug_print without having to use the scope
# operator (Watson::Printer.debug_print) so it is defined here as a 
# module_function instead of having it in the Printer class
# Gets included into every class individually
module_function

nhmood avatar Nov 21 '13 16:11 nhmood