Class: Watson::Formatters::SilentFormatter

Inherits:
DefaultFormatter show all
Defined in:
lib/watson/formatters/silent_formatter.rb

Overview

review
  • All other formatters inherit from BaseFormatter

but since the only thing silent does differently is not print the results, inheriting from DefaultFormatter simplifies things We don’t have to worry about cprint/print_status/ect

Constant Summary

Constants inherited from BaseFormatter

BaseFormatter::DEBUG

Constants included from Watson

BLUE, BOLD, CYAN, GLOBAL_DEBUG_OFF, GLOBAL_DEBUG_ON, GRAY, GREEN, MAGENTA, RED, RESET, UNDERLINE, VERSION, WHITE, YELLOW

Instance Method Summary collapse

Methods inherited from DefaultFormatter

#initialize, #print_header, #print_status

Methods inherited from BaseFormatter

#initialize

Methods included from Watson

check_less, debug_print

Constructor Details

This class inherits a constructor from Watson::Formatters::DefaultFormatter

Instance Method Details

#run(structure) ⇒ Object



7
8
# File 'lib/watson/formatters/silent_formatter.rb', line 7

def run(structure)
end