Module: EacRubyUtils::Envs::BaseCommand::Debugging
- Defined in:
- lib/eac_ruby_utils/envs/base_command/debugging.rb
Instance Method Summary collapse
- #debug? ⇒ Boolean
-
#debug_print(message) ⇒ Object
Print a message if debugging is enabled.
Instance Method Details
#debug? ⇒ Boolean
7 8 9 |
# File 'lib/eac_ruby_utils/envs/base_command/debugging.rb', line 7 def debug? ENV['DEBUG'].to_s.strip != '' end |
#debug_print(message) ⇒ Object
Print a message if debugging is enabled.
12 13 14 15 |
# File 'lib/eac_ruby_utils/envs/base_command/debugging.rb', line 12 def debug_print() = .to_s puts .if_respond(:light_red, ) if debug? end |