Module | Nitpick::ClassMethods |
In: |
lib/nitpick.rb
|
Use to manage nitpick message for debugging AutomateIt internals.
Arguments:
Example:
nitpick true nitpick "I'm nitpicking"
# File lib/nitpick.rb, line 13 def nitpick(value=nil) case value when NilClass @nitpick when TrueClass, FalseClass @nitpick = value when String, Symbol puts "%% #{value}" if @nitpick else raise TypeError.new("Unknown nitpick type: #{value.class}") end end